#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    long long n, a, b;
    scanf("%lld%lld%lld", &n, &a, &b);
    long long d = b - a;
    long long ms = INT_MAX;
    long long di;
    if (n == 2)
      printf("%lld %lld\n", a, b);
    else {
      for (int i = 1; i <= 50; i++) {
        if (d % i == 0 && (b - a) / i <= (n - 1)) {
          long long st;
          if (a % i == 0)
            st = i;
          else
            st = a - a / i * i;
          st = max(st, a - (n - (b - a) / i - 1) * i);
          if (st + (n - 1) * i < ms) {
            ms = st + (n - 1) * i;
            di = i;
          }
        }
      }
      for (int i = 1; i <= n; i++) {
        printf("%lld ", ms);
        ms -= di;
      }
      printf("\n");
    }
  }
}
