#include <bits/stdc++.h>
using namespace std;
int main() {
  int num_test_cases;
  cin >> num_test_cases;
  for (int tc = 0; tc < num_test_cases; tc++) {
    long long x, y, k;
    cin >> x >> y >> k;
    long long num_coals = 0;
    long long num_sticks = 1;
    long long ans = 0;
    long long total_sticks_trade = y * k;
    long long ops;
    if ((total_sticks_trade - 1) % (x - 1) == 0)
      ops = ((total_sticks_trade - 1) / (x - 1)) + 1;
    else
      ops = ((total_sticks_trade - 1) / (x - 1)) + 1;
    num_sticks = 1 + ops * (x - 1);
    ans += ops;
    num_sticks -= k * y;
    ans += k;
    long long sticks_req = k - num_sticks;
    if (sticks_req > 0) {
      ops = sticks_req / (x - 1);
      if (sticks_req % (x - 1) != 0) ops++;
      ans += ops;
    }
    cout << ans << '\n';
  }
  return 0;
}
