#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using pii = pair<int, int>;
int a, d;
int mn;
void solve() {
  int n, x, y;
  cin >> n >> x >> y;
  mn = 0x3f3f3f3f;
  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      if ((y - x) % (j - i)) continue;
      int dd = (y - x) / (j - i);
      int aa = x - i * dd;
      if (aa <= 0) continue;
      int cur = y + dd * (n - 1 - j);
      if (cur < mn) {
        mn = cur;
        a = aa;
        d = dd;
      }
    }
  }
  for (int i = 0; i < n; i++) {
    cout << a + i * d << " ";
  }
  cout << '\n';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int tt;
  cin >> tt;
  while (tt--) solve();
}
