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