#include <bits/stdc++.h>
using namespace std;
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  long long want = k + (k * y);
  want -= x;
  if (want <= 0) {
    cout << 1 + k << endl;
    return;
  }
  long long moves = 1;
  moves += (want) / (x - 1);
  moves += k;
  if (want % (x - 1)) moves++;
  cout << moves << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
