#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    long long n, l, r;
    cin >> n >> l >> r;
    long long cur = 1, odd = 1, num = 2, ye = 1, add = 2;
    while (cur < l) {
      cur += odd;
      cur++;
      if (cur > l) {
        cur--;
        cur -= odd;
        break;
      }
      odd += 2;
      num++;
    }
    while (cur < l) {
      cur++;
      if (ye == num) {
        if (add < num) {
          ye = add;
        } else {
          num++;
          add = 2;
          ye = 1;
        }
      } else {
        if (ye != 1) {
          add++;
        }
        ye = num;
      }
    }
    for (long long i = l; i <= r; i++) {
      cout << ye << " ";
      if (ye == num) {
        if (add < num) {
          ye = add;
        } else {
          num++;
          add = 2;
          ye = 1;
        }
      } else {
        if (ye != 1) {
          add++;
        }
        ye = num;
      }
    }
    cout << endl;
  }
  return 0;
}
