# problem 2
def calc(N, index):
    # find the number when given (N,index)
    if index == 1:
        return 1
    cnt = 1
    while 1+cnt*(cnt-1) < index:
        cnt += 1

    # maximum value := cnt
    Left = index-(cnt-1)*(cnt-2)
    if Left % 2 == 0:
        return cnt
    else:
        if cnt != Left//2+1:
            return Left//2+1
        else:
            return 1


def solve():
    n, l, r = map(int, input().split())
    A = []
    for i in range(l, r+1):
        A.append(calc(n, i))
    print(*A)


def main():
    T = int(input())
    for i in range(T):
        solve()


if __name__ == "__main__":
    main()