#include <bits/stdc++.h>
using namespace std;
long long gcd(long long a, long long b) {
  if (b == 0) return a;
  return gcd(b, a % b);
}
long long T;
signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cin >> T;
  while (T--) {
    long long n, l, r;
    cin >> n >> l >> r;
    long long k = (l + 1) / 2;
    long long t = 1, p = 0;
    while (p < k) p += (t++);
    p *= 2;
    long long cnt = t - 1;
    while (p < l) p += 2, cnt--;
    long long rt = 1, c;
    k = (l + 1) / 2, p = 0;
    while (p < k) p += (rt++);
    c = 1;
    p *= 2;
    while (p < l) p += 2, c++;
    rt--;
    for (long long i = l; i <= r; i++) {
      if (i & 1) {
        cout << c << " ";
        if (c == rt)
          c = 1, rt++;
        else
          c++;
      } else {
        cout << t << " ";
        cnt--;
        if (cnt == 0) t++, cnt = t - 1;
      }
    }
    cout << '\n';
  }
  return 0;
}
