#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int x, y, k;
    cin >> x >> y >> k;
    long long int req = k * y;
    req += k;
    long long int one = x - 1;
    req--;
    long long int ret = req / one;
    if (req % one != 0) {
      ret++;
    }
    long long int ret2 = ret + k;
    cout << ret2 << endl;
  }
}
