#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 coal = k;
    long long int s = coal * y;
    s += k;
    s--;
    long long int total = s / (x - 1);
    long long int other = s % (x - 1);
    if (other) {
      total++;
    }
    cout << total + k << endl;
  }
  return 0;
}
