#include <bits/stdc++.h>
using namespace std;
long long N = sqrtl(1000000000);
void parr(long long *a, long long n) {
  for (long long i = 0; i < n; i++) cout << a[i] << " ";
  cout << '\n';
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long double x, y, k;
    cin >> x >> y >> k;
    long double res = 0, need = y * k + k - 1;
    res += need / (x - 1.0);
    cout << (long long)(ceil(res + k)) << '\n';
  }
  return 0;
}
