#include <bits/stdc++.h>
using namespace std;
int main() {
  long long tst, x, y, k, sti;
  cin >> tst;
  while (tst--) {
    cin >> x >> y >> k;
    sti = (k * y) + k;
    sti--;
    long long cnt = k;
    long long sq = sti / (x - 1);
    if (sq * (x - 1) == sti) cout << sq + cnt << endl;
    if (sq * (x - 1) != sti) cout << sq + cnt + 1 << endl;
  }
  return 0;
}
