#include <bits/stdc++.h>
using namespace std;
int n;
long long l, r;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  int t;
  cin >> t;
  while (t--) {
    cin >> n >> l >> r;
    --l;
    --r;
    long long a = 1LL, b = 1LL, c = -l;
    long long idx = floor((-b + sqrt(b * b - 4LL * a * c)) / (2LL * a));
    long long num = idx + 2LL;
    l -= (idx) * (idx + 1LL);
    r -= (idx) * (idx + 1LL);
    long long curr = (l / 2LL) + 1LL;
    for (long long i = l; i <= r; ++i) {
      if (num == curr) {
        ++num;
        curr = 1LL;
      }
      if (i % 2LL == 0LL) {
        cout << curr << " ";
      } else {
        cout << num << " ";
        curr++;
      }
    }
    cout << "\n";
  }
  return 0;
}
