#include <bits/stdc++.h>
using namespace std;
const int maxc = 1e5;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int k = 0;
    int n, l, r;
    cin >> n >> l >> r;
    for (int i = 2 * (n - 1); i; k += i, i -= 2) {
      for (int j = max(l, k + 1); j <= min(r, k + i); j++) {
        if (j % 2)
          cout << n - i / 2 << " ";
        else
          cout << n - i / 2 + (j - k) / 2 << " ";
      }
    }
    if (k + 1 == r) cout << 1;
    cout << endl;
  }
  return 0;
}
