#include <bits/stdc++.h>
using namespace std;
const int inf = 0x7FFFFFFF;
const long long mod = (0 ? 1000000007 : 998244353);
const double eps = 1e-7;
void work() {
  long long n, l, r;
  cin >> n >> l >> r;
  long long sum = 1;
  long long nw = 2;
  long long cnt = 1;
  while (sum + nw <= l) {
    cnt++;
    sum += nw;
    nw += 2;
  }
  vector<long long> ans;
  long long fl = 0;
  long long res = l - sum;
  long long pos = l - 1;
  cnt++;
  if (res == 0) {
    ans.push_back(1);
    pos++;
    fl = 0;
    res = 2;
  } else if (res & 1)
    fl = 1;
  long long now = 1 + (res / 2 + res & 1);
  while (pos < r) {
    pos++;
    if (fl == 0) {
      ans.push_back(cnt);
      fl = 1;
      continue;
    }
    if (now == cnt) {
      cnt++;
      ans.push_back(1);
      now = 2;
      fl = 0;
      continue;
    }
    fl = 0;
    ans.push_back(now);
    now++;
    continue;
  }
  for (long long i = 0; i < ans.size(); i++) {
    cout << ans[i] << ' ';
  }
  cout << endl;
}
signed main() {
  std::ios::sync_with_stdio(false);
  cin.tie(NULL);
  long long t = 1;
  cin >> t;
  while (t--) {
    work();
  }
  return 0;
}
