#include <bits/stdc++.h>
int main() {
  long long int x, y, k, t, ans;
  scanf("%lld", &t);
  while (t--) {
    scanf("%lld%lld%lld", &x, &y, &k);
    ans = 1ll * k * (y + 1);
    ans = (ans - 1 + x - 1 - 1) / (x - 1) + k;
    printf("%lld\n", ans);
  }
}
