#include <bits/stdc++.h>
#pragma comment(linker, "/stack:200000000")
using namespace std;
ifstream fin("AAtest.in.txt");
long long t, x, y, k, palju;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cerr.tie(0);
  cin >> t;
  while (t--) {
    cin >> x >> y >> k;
    palju = k;
    palju += (k * (y + 1) - 2) / (x - 1) + 1;
    cout << palju << "\n";
  }
}
