def f(n):
    return((1 + (1+4*n)**.5)/2)

t = int(input())


for x in range(t):
    n,l,r = map(int, input().split())
    l -= 1
    r -= 1
    lst = []
    for i in range(l, r+1):
        low = int(f(i))
        place = i - (low**2 - low)
        if place == 0:
            lst.append(1)
        elif place % 2 == 1:
            lst.append(low+1)
        else:
            lst.append(int(place/2) + 1)
    mot = ""
    for x in lst:
        mot += str(x) + " "
    print(mot)