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