#include <bits/stdc++.h>
using namespace std;
long long int gcd(int a, int b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  long long int test;
  scanf("%lld", &test);
  while (test--) {
    long long int i, n, j, ans = 0, m, s = 0, sum = 0, x = 0, y;
    vector<long long int> v;
    scanf("%lld", &n);
    scanf("%lld %lld", &x, &y);
    s = abs(x - y);
    n -= 1;
    v.push_back(x);
    v.push_back(y);
    for (i = n; i >= 1; i--) {
      if (s % i == 0) {
        sum = s / i;
        break;
      }
    }
    n--;
    long long int p = x;
    while (1) {
      if (n <= 0) break;
      if (p + sum == y) break;
      p += sum;
      v.push_back(p);
      n--;
    }
    while (1) {
      if (n <= 0) break;
      if (x - sum <= 0)
        break;
      else {
        x -= sum;
        v.push_back(x);
        n--;
      }
    }
    while (1) {
      if (n <= 0)
        break;
      else {
        p += sum;
        if (p != y) {
          v.push_back(p);
          n--;
        }
      }
    }
    for (i = 0; i < v.size(); i++) {
      cout << v[i] << " ";
    }
    cout << endl;
  }
}
