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