#include <bits/stdc++.h>
using namespace std;
signed main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long i, j, k = 0, n, t = 1, m, l = 0;
  cin >> t;
  while (t--) {
    long long x, y;
    cin >> n >> x >> y;
    swap(x, y);
    if (max(x, y) >= n) {
      long long y2 = x;
      m = (x - y);
      set<long long> a, s;
      l = ceil((x - y) * 1.0 / (n - 1));
      for (i = 1; i * i <= m; i++) {
        if (m % i == 0) {
          k = m / i;
          if (i >= l) a.insert(i);
          if (k >= l) a.insert(k);
        }
      }
      for (auto u : a) {
        s.insert(x);
        s.insert(y);
        long long y1 = x;
        while (x >= 1 && s.size() < n) {
          s.insert(x);
          x -= u;
        }
        y1 += u;
        while (s.size() < n && y1 <= 1000000000) {
          s.insert(y1);
          y1 += u;
        }
        if (s.size() >= n)
          break;
        else
          s.clear();
      }
      for (auto p : s) {
        cout << p << " ";
      }
      cout << "\n";
    } else {
      for (i = 1; i <= n; i++) cout << i << " ";
      cout << "\n";
    }
  }
  return 0;
}
