#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  int n;
  int x, y;
  int gap;
  int i, j;
  int mx;
  int cnt;
  int ans;
  cin.tie(NULL);
  ios::sync_with_stdio(false);
  cin >> t;
  while (t--) {
    cin >> n >> x >> y;
    gap = y - x;
    mx = 1000000000;
    for (i = 1; i <= gap; i++) {
      if (gap % i != 0) continue;
      if (gap / i + 1 > n) continue;
      cnt = n - (gap / i - 1) - 2;
      for (j = x - i; j > 0; j -= i) cnt--;
      if (cnt <= 0) {
        if (mx > y) {
          mx = y;
          ans = i;
        }
      }
      for (j = y + i; cnt > 0; j += i) {
        cnt--;
        if (cnt == 0) {
          if (mx > j) {
            mx = j;
            ans = i;
          }
        }
      }
    }
    cnt = n;
    for (i = x; i <= y; i += ans) {
      cout << i << ' ';
      cnt--;
    }
    for (i = x - ans; i > 0 && cnt > 0; i -= ans) {
      cout << i << ' ';
      cnt--;
    }
    for (i = y + ans; cnt > 0; i += ans) {
      cout << i << ' ';
      cnt--;
    }
    cout << '\n';
  }
}
