#include <bits/stdc++.h>
using namespace std;
long long int m, n, c = 0, k = 0, a = 0, b = 0, temp, MAX = 0, MIN = 999999999,
                    sum = 0;
long long int i, j;
int main() {
  int t;
  cin >> t;
  while (t--) {
    cin >> a >> b >> c;
    m = 0, k = 0, n = 0;
    k = ((b * c) + c);
    m = (k - 1) / (a - 1);
    n = ((a - 1) * m) + 1;
    if (k != n)
      cout << (m + c) + 1 << endl;
    else
      cout << (m + c) << endl;
  }
}
