#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n, x, y, b;
    cin >> n >> x >> y;
    b = n;
    int t = y - x, i, k;
    for (i = n - 1; i >= 1; i--) {
      if (t % i == 0) break;
    }
    n = n - (i - 1) - 2;
    k = t / i;
    int c = x / k;
    c = min(c, n);
    n = n - c;
    if (x - c * k == 0) c--;
    i = 0;
    while (i < b) {
      cout << (x - c * k) + i * k << " ";
      i++;
    }
    cout << endl;
  }
}
