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