#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
using namespace std;
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long i, j, k, n, l, r, t;
  cin >> t;
  while (t--) {
    cin >> n >> l >> r;
    i = 2;
    while ((i * (i - 1)) < l) i++;
    while (l <= r) {
      j = l - ((i - 1) * (i - 2));
      if ((j) % 2 == 0) {
        cout << i << " ";
        l++;
        j = l - ((i - 1) * (i - 2));
        if (((j + 1) / 2) == i) i++;
      } else {
        cout << ((j + 1) / 2) << " ";
        l++;
      }
    }
    cout << "\n";
  }
  return 0;
}
