#include <bits/stdc++.h>
using namespace std;
int n, i, Q, T, j, k, t, x, y, z;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> Q;
  for (T = 1; T <= Q; T++) {
    cin >> n >> x >> y;
    vector<int> fine;
    fine.push_back(1000000001);
    for (i = 1; i <= 50; i++) {
      bool u = 0, d = 0;
      if (i == x) u = 1;
      if (i == y) d = 1;
      vector<int> tmp;
      tmp.push_back(i);
      for (j = i + 1; j <= 50; j++) {
        k = j - i;
        tmp.clear();
        tmp.push_back(i);
        tmp.push_back(j);
        t = 2;
        if (j == x) u = 1;
        if (j == y) d = 1;
        if (n == 2) {
          if (fine[((int)fine.size()) - 1] > tmp[n - 1] && u && d) {
            fine.clear();
            fine = tmp;
          }
        } else
          for (z = j + k; t < n; z += k, t++) {
            tmp.push_back(z);
            if (z == x) u = 1;
            if (z == y) d = 1;
          }
        if (fine[((int)fine.size()) - 1] > tmp[n - 1] && u && d) {
          fine.clear();
          fine = tmp;
        }
        u = 0;
        d = 0;
        if (i == x) u = 1;
        if (i == y) d = 1;
      }
      u = 0;
      d = 0;
    }
    for (i = 0; i < n; i++) cout << fine[i] << " ";
    cout << "\n";
  }
}
