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