#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int i, j, k, l, m, n, t, x;
  cin >> t;
  while (t--) {
    cin >> j >> k >> l;
    m = l + (k * l);
    x = (m - 1) / (j - 1);
    if (x * (j - 1) == (m - 1)) {
      cout << x + l << endl;
    } else {
      cout << x + l + 1 << endl;
    }
  }
}
