#include <bits/stdc++.h>
using namespace std;
inline long long int maxim(long long int a, long long int b) {
  if (a > b)
    return a;
  else
    return b;
}
inline long long int minim(long long int a, long long int b) {
  if (a < b)
    return a;
  else
    return b;
}
inline bool equals(double a, double b) { return fabs(a - b) < 1e-9; }
long long int gcd(long long int a, long long int b) {
  return b == 0 ? a : gcd(b, a % b);
}
long long int arr[1000010][2];
long long int cost[1000010] = {0};
long long int f(long long int x) { return 1 + x * (x - 1); }
long long int binary(long long int low, long long int high,
                     long long int target) {
  while (low + 2 < high) {
    long long int mid = (low + high) / 2;
    if (f(mid) < target) {
      low = mid;
    } else {
      high = mid - 1;
    }
  }
  for (long long int o = (high), _b = (low); o >= _b; o--) {
    if (f(o) < target) {
      return o;
    }
  }
}
int main() {
  cin.tie(NULL);
  cout.tie(NULL);
  ios_base::sync_with_stdio(false);
  cout << setprecision(10) << fixed;
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int l, r;
    cin >> l >> r;
    for (long long int o = (l), _b = (r); o <= _b; o++) {
      long long int x = binary(1, 100001, o);
      long long int rem = o - (1 + x * (x - 1));
      if (rem % 2 == 1) {
        cout << x + 1 << " ";
      } else {
        long long int div = rem / 2;
        div++;
        if (div == x + 1)
          cout << 1 << " ";
        else
          cout << div << " ";
      }
    }
    cout << "\n";
  }
  return 0;
}
