#include <bits/stdc++.h>
using namespace std;
const long long inf = (long long)1e18;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  int tn;
  cin >> tn;
  while (tn--) {
    int n, x, y;
    cin >> n >> x >> y;
    long long ans = inf;
    int ans_i = -1, ans_j = -1;
    for (int i = 0; i < n; i++) {
      for (int j = i + 1; j < n; j++) {
        if ((y - x) % (j - i) == 0) {
          int k = (y - x) / (j - i);
          long long mx = y + (n - j) * 1LL * k;
          long long mn = x - i * 1LL * k;
          if (mx < ans && mn > 0) {
            ans = mx;
            ans_i = i;
            ans_j = j;
          }
        }
      }
    }
    int k = (y - x) / (ans_j - ans_i);
    for (int i = 0; i < n; i++) {
      cout << (i - ans_i) * 1LL * k + x << ' ';
      if (i == ans_j) {
        assert((i - ans_i) * 1LL * k + x == y);
      }
    }
    cout << '\n';
  }
  return 0;
}
