#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long int x, y, k, c1, c2, ans;
    cin >> x >> y >> k;
    c1 = (k * (y + 1) + x - 3) / (x - 1);
    c2 = k;
    ans = c1 + c2;
    cout << ans << endl;
  }
}
