#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long t;
  cin >> t;
  while (t--) {
    unsigned long long x, y, k, ans, res;
    cin >> x >> y >> k;
    ans = (k * y) + k - 1;
    res = (ans / (x - 1)) + (ans % (x - 1) != 0);
    cout << res + k << "\n";
  }
  return 0;
}
