#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long T, x, y, k;
  cin >> T;
  while (T--) {
    cin >> x >> y >> k;
    int num = k;
    if (k * (y + 1) <= x)
      cout << num + 1 << endl;
    else {
      cout << num + (k * (y + 1) - 2) / (x - 1) + 1 << endl;
    }
  }
  return 0;
}
