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