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