#include <bits/stdc++.h>
using namespace std;
short n_digits(long long n) { return floor(log10(n)) + 1; }
bool is_int(double N) { return floor(N) == N; }
void solve() {
  long double x, y, k, ans;
  cin >> x >> y >> k;
  cout << setprecision(20) << ceil((k * (1 + y) - 1) / (x - 1)) + k;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int testCase;
  cin >> testCase;
  while (testCase--) {
    solve();
    cout << "\n";
  }
}
