#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  cout << k + (k * y + k - 1 + x - 2) / (x - 1) << '\n';
}
signed main() {
  long long t;
  cin >> t;
  for (long long i = 0; i < t; i++) solve();
}
