#include <bits/stdc++.h>
#pragma optimize("g", on)
using namespace std;
int main() {
  long long a[10002], ch[10002], r[10002], g, t, c, nch, d, e, x, y,
      f = 0, ps, ns, n, m, k, prm;
  cin >> t;
  while (t) {
    cin >> x >> y >> k;
    x -= 1;
    g = (y * k) + k - 1;
    if (g % x)
      c = 1;
    else
      c = 0;
    cout << g / x + k + c << endl;
    t--;
  }
}
