#include <bits/stdc++.h>
using namespace std;
int main() {
  long long T, x, y, k;
  cin >> T;
  while (T--) {
    cin >> x >> y >> k;
    long long minSt = (y * k) + k - 1;
    long long st = 1;
    long long count = minSt / (x - 1);
    if (minSt % (x - 1) != 0) {
      cout << count + k + 1 << endl;
    } else
      cout << count + k << endl;
  }
}
