#include <bits/stdc++.h>
using namespace std;
long long GCD(long long a, long long b) { return b == 0 ? a : GCD(b, a % b); }
long long Power(long long a, long long b, long long p) {
  long long ans = 1;
  while (b) {
    if (b & 1) ans = ans * a % p;
    a = a * a % p;
    b >>= 1;
  }
  return ans;
}
bool isPrime(long long num) {
  if (num == 2 || num == 3) return true;
  if (num % 6 != 1 && num % 6 != 5) return false;
  long long t = sqrt((double)num);
  for (long long i = 5; i <= t; i += 6)
    if (num % i == 0 || num % (i + 2) == 0) return false;
  return true;
}
bool isRunyear(int year) {
  if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) {
    return true;
  } else {
    return false;
  }
}
string add(string s1, string s2) {
  if (s1.length() < s2.length()) {
    string temp = s1;
    s1 = s2;
    s2 = temp;
  }
  int i, j;
  for (i = s1.length() - 1, j = s2.length() - 1; i >= 0; i--, j--) {
    s1[i] = char(s1[i] + (j >= 0 ? s2[j] - '0' : 0));
    if (s1[i] - '0' >= 10) {
      s1[i] = char((s1[i] - '0') % 10 + '0');
      if (i)
        s1[i - 1]++;
      else
        s1 = '1' + s1;
    }
  }
  return s1;
}
inline int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = (x << 1) + (x << 3) + (ch ^ 48);
    ch = getchar();
  }
  return x * f;
}
const long long inf = 2e5 + 10;
const long long mod = 1e9 + 7;
long long n, m, i, j, k = 0, t, w, flag, x, y, z, sum;
string s1, s2, s;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  while (cin >> k) {
    while (k--) {
      cin >> x >> y >> z;
      t = (y * z + z - 1) / (x - 1) + ((y * z + z - 1) % (x - 1) ? 1 : 0) + z;
      cout << t << endl;
    }
  }
  return 0;
}
