#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  long long t, n, l, r;
  cin >> t;
  while (t--) {
    cin >> n >> l >> r;
    long long steps = r - l + 1, big = 2, small, take = 2;
    bool on = l % 2 == 0;
    while (l > take) {
      l -= take;
      big++;
      take += 2;
    }
    small = l / 2 + 1;
    for (int i = 0; i < steps; ++i) {
      if (on)
        cout << big << " ";
      else {
        if (small == big) {
          big++;
          small = 1;
        }
        cout << small++ << " ";
      }
      on ^= 1;
    }
    cout << "\n";
  }
  return 0;
}
