#include <bits/stdc++.h>
using namespace std;
template <class c>
struct rge {
  c b, e;
};
template <class c>
rge<c> range(c i, c j) {
  return rge<c>{i, j};
}
template <class c>
auto dud(c* x) -> decltype(cerr << *x, 0);
template <class c>
char dud(...);
struct debug {
  template <class c>
  debug& operator<<(const c&) {
    return *this;
  }
};
long long ceil_of(long long a, long long b) { return (a + b - 1) / b; }
void solve() {
  long long x, y, k;
  cin >> x >> y >> k;
  long long T = ceil_of((k + k * y - 1), (x - 1));
  cout << T + k << "\n";
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int tt = 1;
  cin >> tt;
  while (tt--) {
    solve();
  }
}
