#include <bits/stdc++.h>
using namespace std;
void f(const int offset, const int n, const int l, const int r) {
  if (l > r || n == 1) return;
  const int c = 2 * (n - 1);
  if (r >= 1 && l <= c) {
    for (int i = 1; i <= c; ++i)
      if (l <= i && i <= r) cout << (i & 1 ? offset : i / 2 + offset) << ' ';
  }
  f(offset + 1, n - 1, l - c, r - c);
}
void f() {
  int n, l, r;
  cin >> n >> l >> r;
  f(1, n, l, r);
  cout << "1\n";
}
signed main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr), cout.tie(nullptr);
  int t;
  cin >> t;
  while (t--) f();
  return 0;
}
