#include <bits/stdc++.h>
using namespace std;
void err(istream_iterator<string> it) {}
template <typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
  cerr << *it << " = " << a << " ";
  err(++it, args...);
}
const long long int N = 1e5 + 5;
signed main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long int t = 1;
  cin >> t;
  vector<long long int> pre(N);
  pre[0] = 0;
  pre[1] = 1;
  for (long long int i = 2; i <= N; i++) {
    pre[i] = pre[i - 1] + (i - 1) * 2;
  }
  while (t--) {
    long long int n, l, r;
    cin >> n >> l >> r;
    auto it = lower_bound(pre.begin(), pre.end(), l);
    long long int ind = it - pre.begin();
    long long int cnt;
    it--;
    long long int start = l - *it;
    bool chg = 0;
    if (start % 2 == 0) {
      cnt = 1 + start / 2;
    } else {
      chg = 1;
      cnt = 1 + (start + 1) / 2;
    }
    long long int val = ind, diff = r - l + 1;
    bool nxt = false;
    for (long long int i = 0; i < diff; i++) {
      if (!chg) {
        chg = 1;
        if (cnt == val) {
          cout << 1 << " ";
          cnt = 1;
          nxt = 1;
        } else
          cout << cnt << " ";
        cnt++;
      } else {
        chg = 0;
        if (nxt) {
          nxt = 0;
          val++;
        }
        cout << val << " ";
      }
    }
    cout << '\n';
  }
  return 0;
}
