#include <bits/stdc++.h>
using i64 = long long;
int t;
i64 n, l, r;
int main() {
  scanf("%d", &t);
  while (t--) {
    scanf("%I64d%I64d%I64d", &n, &l, &r);
    for (i64 i = 2; i <= n; ++i) {
      if (l <= (i - 1) * (i - 2) + 1)
        for (i64 k = 1, q = (i - 1) * (i - 2) + 1; k < i; ++k, q += 2) {
          if (q <= r)
            printf("%I64d ", k);
          else
            break;
          if (q + 1 <= r)
            printf("%I64d ", i);
          else
            break;
        }
    }
    if (r == n * (n - 1) + 1) printf("1");
    printf("\n");
  }
  return 0;
}
