#include <bits/stdc++.h>
using namespace std;
void debug() { cerr << "\n"; }
template <typename H, typename... T>
void debug(H h, T... t) {
  cerr << h;
  if (sizeof...(t)) cerr << ", ";
  debug(t...);
}
const int N = 2e5 + 5, INF = 1e9 + 5, mod = 1e9 + 7;
int main() {
  int t;
  cin >> t;
  while (t--) {
    long long x, y, k, t = 0;
    cin >> x >> y >> k;
    t += k * (y + 1) - 1;
    cout << (t + x - 2) / (x - 1) + k << "\n";
  }
}
