#include <bits/stdc++.h>
using namespace std;
int main() {
  int t, n, x, y, countpr, pr = 0;
  cin >> t;
  for (int i = 0; i < t; ++i) {
    cin >> n >> x >> y;
    countpr = 0;
    if (n == 2) {
      cout << x << " " << y << "\n";
    } else {
      vector<int> s;
      s.push_back(x);
      s.push_back(y);
      for (int j = n - 1; j > 0; --j) {
        if ((y - x) % j == 0) {
          pr = (y - x) / j;
          break;
        } else {
          countpr++;
        }
      }
      if (countpr == 0) {
        while (y - pr != x) {
          s.push_back(y - pr);
          y -= pr;
        }
      } else {
        int u = y;
        while (u - pr != x) {
          s.push_back(u - pr);
          u -= pr;
        }
        while (x - pr > 0 && countpr != 0) {
          s.push_back(x - pr);
          x -= pr;
          countpr--;
        }
        while (countpr != 0) {
          s.push_back(y + pr);
          y += pr;
          countpr--;
        }
      }
      for (int a = 0; a < s.size(); a++) {
        cout << s[a] << " ";
      }
      cout << "\n";
    }
  }
  return 0;
}
