#include <bits/stdc++.h>
using namespace std;
template <typename A1>
void prn(A1&& arg) {
  cout << arg << '\n';
}
template <typename A1, typename... A>
void prn(A1&& arg, A&&... args) {
  cout << arg << ' ';
  prn(args...);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n, x, y, d, rem;
    cin >> n >> x >> y;
    rem = y - x;
    long long mx = LLONG_MAX, val;
    vector<long long> v, tmp;
    for (long long i = n - 1; i > 0; i--) {
      if ((rem % i) == 0) {
        d = rem / i;
        tmp.clear();
        tmp.emplace_back(x);
        val = x;
        while (val != y) {
          val += d;
          tmp.emplace_back(val);
        }
        if (tmp.size() < n) {
          reverse(tmp.begin(), tmp.end());
          val = x;
          while (tmp.size() < n) {
            val -= d;
            if (val <= 0) break;
            tmp.emplace_back(val);
          }
          if (tmp.size() < n) {
            reverse(tmp.begin(), tmp.end());
            val = y;
            while (tmp.size() < n) {
              val += d;
              tmp.emplace_back(val);
            }
          }
        }
        if (tmp.back() < mx) {
          mx = tmp.back();
          v.clear();
          for (long long x : tmp) v.emplace_back(x);
        }
      }
    }
    for (long long x : v) cout << x << " ";
    cout << '\n';
  }
}
