#include <bits/stdc++.h>
using namespace std;
void INPUT() {}
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  long long req = k;
  long long total = 0;
  long long ans = 0;
  ans = ceil((long double)(req - 1) / (x - 1));
  total = 1 + ans * (x - 1);
  req = (k + k * y) - total;
  ans = ans + ceil((long double)req / (x - 1));
  ans = ans + k;
  cout << ans << "\n";
}
int main() {
  long long t;
  cin >> t;
  while (t--) {
    solve();
  }
}
