#include <bits/stdc++.h>
using namespace std;
template <typename Arg1>
void __f(const char* name, Arg1&& arg1) {
  std::cerr << name << " : " << arg1 << endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
  const char* comma = strchr(names + 1, ',');
  std::cerr.write(names, comma - names) << " : " << arg1 << " | ";
  __f(comma + 1, args...);
}
long long hell = round(1e18);
signed solve() {
  long long n, l, r;
  cin >> n >> l >> r;
  long long a = 2 * (n - 1) - 1;
  long long l1 = 1;
  if (l1 <= a) {
    while (l1 <= r && l1 <= a) {
      if (l1 % 2)
        if (l1 >= l && l1 <= r)
          cout << 1 << " ";
        else if (l1 >= l && l1 <= r)
          cout << (l1 / 2) + 1 << " ";
      l1++;
    }
  } else {
    l1 = a + 1;
  }
  if (l1 <= r) {
    long long p = 0;
    for (long long i = a - 2; i >= 1; i -= 2) {
      long long k = 0;
      while (k < i && k + l1 <= r && l1 + i >= l) {
        if ((k + 1) % 2)
          if (l1 >= l && l1 <= r)
            cout << n - p << " ";
          else if (l1 >= l && l1 <= r)
            cout << (k + 1) / 2 + 1 << " ";
        k++;
      }
      p++;
      l1 += i;
      if (l1 > r) break;
    }
  }
  if (l1 <= r) {
    long long p = 2;
    while (p <= n && l1 <= r) {
      if (l1 >= l && l1 <= r) cout << p << " ";
      p++;
      l1++;
    }
  }
  if (l1 <= r) {
    if (l1 >= l && l1 <= r) cout << 1;
    l1++;
  }
  cout << ("\n");
  return 0;
}
signed main() {
  long long t = 1;
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> t;
  while (t--) {
    solve();
  }
  return 0;
}
