#include <bits/stdc++.h>
using namespace std;
using ll = long long;
void solve() {
  ll n, l, r;
  cin >> n >> l >> r;
  ll i = 1, j = 2;
  while (i + (j - 1) * 2 <= l) {
    i += (j - 1) * 2;
    ++j;
  }
  ll k = 1;
  for (; i <= r; ++i) {
    int ans;
    if (i % 2) {
      ans = k++;
    } else {
      ans = j;
      if (k == j) {
        ++j;
        k = 1;
      }
    }
    if (i >= l) {
      cout << ans << ' ';
    }
  }
  cout << '\n';
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
