#include <bits/stdc++.h>
using namespace std;
void solve() {
  long double x, y, k;
  cin >> x >> y >> k;
  cout << setprecision(30) << ceill((k * (y + 1) - 1) / (x - 1)) + k << '\n';
}
int main() {
  int q;
  cin >> q;
  while (q--) {
    solve();
  }
  return 0;
}
