#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n, x, y;
    cin >> n >> x >> y;
    int i, j, ap = 0, dif = 0;
    for (i = 1; i <= x; i++) {
      for (j = 1; j <= (y - x); j++) {
        if ((x - i) % j == 0 && (y - i) % j == 0 && ((y - i) / j) < n) {
          if (ap == 0) {
            ap = i;
            dif = j;
          } else if (ap + (dif * (n - 1)) > i + (j * (n - 1))) {
            ap = i;
            dif = j;
          }
        }
      }
    }
    for (i = 0; i < n; i++) {
      cout << ap + (i * dif) << " ";
    }
    cout << "\n";
  }
  return 0;
}
