#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    unsigned long long n, m, k;
    cin >> n >> m >> k;
    unsigned long long req = m * k + k;
    req = (req - 2) / (n - 1) + 1;
    cout << req + k << endl;
  }
  return 0;
}
