#include <bits/stdc++.h>
int main(void) {
  int T;
  long long x, y, k, res;
  scanf("%d", &T);
  while (T--) {
    scanf("%lld %lld %lld", &x, &y, &k);
    res = (k * (y + 1) - 1) / (x - 1) +
          (((k * (y + 1) - 1) % (x - 1) == 0) ? 0 : 1);
    printf("%lld\n", res + k);
  }
  return 0;
}
