import math
import sys

def LFromI(I):
    return I*I-I

def IFromL(L):
    return math.floor((1+math.sqrt(1+4*L))/2)

def Out(l, R):
    curint = IFromL(l)
    L = LFromI(curint)
    curpos = L

    while curpos < R:
        for i in range(2*curint):
            if curpos + i >= R:
                break
            if i % 2 == 1:
                print(1+curint, end=' ')
            else:
                print(1+i//2, end=' ')
        curpos += 2*curint
        curint += 1

t = int(input())

for _ in range(t):
    n, l, r = map(int, input().split())
    Out(l, r)
    print()
