#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long x, y, k;
    cin >> x >> y >> k;
    if (x == y && y == k)
      cout << x * 2 + 3 << "\n";
    else {
      long long total_stick = (y + 1) * k - 1;
      long long stick_trade = (total_stick) / (x - 1);
      if ((total_stick) % (x - 1) != 0)
        cout << stick_trade + k + 1 << "\n";
      else
        cout << stick_trade + k << "\n";
    }
  }
  return 0;
}
