#include <bits/stdc++.h>
using namespace std;
const long long N = 500009;
struct custom_hash {
  static uint64_t splitmix64(uint64_t x) {
    x += 0x9e3779b97f4a7c15;
    x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
    x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
    return x ^ (x >> 31);
  }
  size_t operator()(uint64_t x) const {
    static const uint64_t FIXED_RANDOM =
        chrono::steady_clock::now().time_since_epoch().count();
    return splitmix64(x + FIXED_RANDOM);
  }
};
void solve() {
  long long n;
  cin >> n;
  long long x, y;
  cin >> x >> y;
  long long d = 0;
  long long nn = n;
  long long cnt = 0;
  for (long long i = n - 1; i >= 1; i--) {
    if ((y - x) % i == 0) {
      cnt = i - 1;
      d = (y - x) / i;
      break;
    }
  }
  n -= 2;
  long long s;
  if (x - (n - cnt) * d >= 1)
    s = x - (n - cnt) * d;
  else
    s = x - d * ((x - 1) / d);
  for (int i = 1; i <= nn; i++) {
    cout << s << " ";
    s += d;
  }
  cout << endl;
}
signed main() {
  ios::sync_with_stdio(0);
  long long t = 1;
  cin >> t;
  while (t--) solve();
  return 0;
}
