#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  long long need = k * (y + 1);
  cout << (need + x - 3) / (x - 1) + k;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int test = 1;
  cin >> test;
  while (test--) {
    solve();
    cout << "\n";
  }
  return 0;
}
