#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(nullptr);
  int T = 0;
  cin >> T;
  while (T--) {
    long long int n = 0;
    long long int l = 0;
    long long int r = 0;
    cin >> n >> l >> r;
    long long int k = 1;
    if (l > 90000000) k = 10000;
    while (true) {
      if ((k + 1) * (k + 1) - (k + 1) >= l) break;
      k++;
    }
    long long int prevEnd = (k * k - k);
    long long int curPos = l;
    long long int curK = k;
    while (true) {
      if (curPos > r) break;
      if (curPos > (curK + 1) * (curK + 1) - (curK + 1)) {
        curK++;
        prevEnd = curK * curK - curK;
      }
      if ((curPos - prevEnd) % 2 == 0) {
        cout << curK + 1 << " ";
      } else {
        cout << (curPos + 1 - prevEnd) / 2 << " ";
      }
      curPos++;
    }
    cout << "\n";
  }
}
