#include <bits/stdc++.h>
using namespace std;
void fun(int x, int divisor) {
  if (x - divisor > 0) {
    fun(x - divisor, divisor);
  }
  if (x > 0) {
    cout << x << ' ';
  }
}
int main() {
  int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    int n, x, y;
    cin >> n >> x >> y;
    int diff = (y - x);
    int divisor;
    for (int j = 1; j <= diff; j++) {
      if ((diff % j) == 0 && n >= (diff / j) + 1) {
        divisor = j;
        break;
      }
    }
    n -= (diff / divisor) + 1;
    if (n == 0) {
      for (int j = x; j <= y; j += divisor) {
        cout << j << ' ';
      }
      cout << '\n';
      continue;
    }
    if (((x - 1) / divisor) >= n) {
      for (int j = x - (n * divisor); j <= y; j += divisor) {
        cout << j << ' ';
      }
      cout << '\n';
      continue;
    }
    fun(x - divisor, divisor);
    n -= (x - 1) / divisor;
    for (int j = x; j <= (y + (n * divisor)); j += divisor) {
      cout << j << ' ';
    }
    cout << '\n';
  }
  return 0;
}
