#include <bits/stdc++.h>
using namespace std;
int t, n, x, y;
vector<int> v[500000];
int main() {
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  cin >> t;
  for (; t > 0; t--) {
    cin >> n >> x >> y;
    int cnt = 0, id, mx = 1000000009;
    for (int i = 1; i <= n - 1; i++) {
      for (int j = i + 1; j <= n; j++) {
        int diff1 = (y - x) / (j - i);
        double diff2 = ((double)(y - x)) / ((double)(j - i));
        int X = x, f = 0, mx1 = -99999999;
        if (diff1 != diff2) {
          f = 1;
        }
        for (int k = i; k <= n; k++) {
          v[cnt].push_back(X);
          if (X < 1 || X > 1000000000) {
            f = 1;
          }
          if (X > mx1) {
            mx1 = X;
          }
          X += diff1;
        }
        X = x - diff1;
        for (int k = i - 1; k >= 1; k--) {
          v[cnt].push_back(X);
          if (X < 1 || X > 1000000000) {
            f = 1;
          }
          if (X > mx1) {
            mx1 = X;
          }
          X -= diff1;
        }
        if (f == 0 && mx1 != -99999999) {
          if (mx > mx1) {
            mx = min(mx, mx1);
            id = cnt;
          }
        }
        cnt++;
      }
    }
    for (int i = 0; i < n; i++) {
      if (i == n - 1) {
        cout << v[id][i] << endl;
      } else {
        cout << v[id][i] << " ";
      }
    }
    for (int i = 0; i < 500000; i++) {
      v[i].clear();
    }
  }
  return 0;
}
