#include <bits/stdc++.h>
using namespace std;
int main() {
  int test;
  cin >> test;
  while (test--) {
    long long int x, y, k, requiredSticks, requiredTrade;
    cin >> x >> y >> k;
    requiredTrade = k;
    requiredSticks = k * y + k - 1;
    requiredTrade +=
        (requiredSticks / (x - 1) + ((requiredSticks % (x - 1)) == 0 ? 0 : 1));
    cout << requiredTrade << endl;
  }
  return 0;
}
