#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  long long z = 1;
  long long n = (((k * (y + z)) - z) + (x - z) - 1) / (x - z);
  cout << n + k << "\n";
}
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T;
  T = 1;
  cin >> T;
  while (T--) {
    solve();
  }
  return 0;
}
