#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    long long x, y, k;
    cin >> x >> y >> k;
    long long my = (y + 1) * k - 1;
    cout << k + (my / (x - 1)) + (my % (x - 1) != 0) << '\n';
  }
}
