#include <bits/stdc++.h>
using namespace std;
const int maxa = 1e3 + 7;
const int maxb = 1e6 + 7;
const int oo = 1e9 + 7;
const int maxtime = 1000;
template <class T>
void fip(T &n) {
  bool neg = 0;
  register T c = getchar();
  n = 0;
  if (c == '-') {
    neg = 1;
    c = getchar();
  }
  for (; (c < 48 || c > 57); c = getchar())
    ;
  for (; (c >= 48 && c <= 57); c = getchar()) {
    n = (n << 1) + (n << 3) + c - '0';
  }
  if (neg) n *= -1;
  cin >> ws;
}
void init();
void solve(int test);
void timer();
void init() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
void timer() {
  int timer = 1000 * clock() / CLOCKS_PER_SEC;
  cout << endl << "Used: " << timer << "ms";
  if (timer > maxtime) cout << endl << "TLE";
}
int main() {
  init();
  int T;
  cin >> T;
  for (int i = 1; i <= T; i++) solve(T);
}
long long x, y, k;
void solve(int test) {
  cin >> x >> y >> k;
  cout << k + (k * (y + 1) - 1) / (x - 1) + bool((k * (y + 1) - 1) % (x - 1))
       << endl;
}
