from math import ceil
T = int(input())

for _ in range(T):
    n, l, r = [int(ele) for ele in input().split(" ")]

    i = int((1 + (4*l - 3)**0.5) // 2)
    j = int(ceil((1 + (4*r - 3)**0.5) / 2)) + 1
    #print(i, j)
    path = []
    
    for m in range(i,j):
        
        if m == 1:
            path.append(1)
            path.append(2)
        elif m == 2:
            continue
        else:
            path.append(1)
            path.append(m)
            for k in range(2,m):
                path.append(k)
                path.append(m)
    path.append(1)
    #if i == 1:
    #    path = path[2:]
    #print(path, i, j, l, r)

    leftLim = l - i*(i-1) - 1
    rightLim = leftLim + r - l +1
    #print(leftLim, rightLim)
    #print(path[leftLim:rightLim])
    for t in range(leftLim, rightLim):
        print(path[t], end=' ')
    print()