t = int(input())
for _ in range(t):
    n, l, r = map(int, input().split())
    ans = []
    memo_l = -1
    for x in range(1, n):
        if (x - 1) * x < l <= x * (x + 1):
            memo_l = x

    if memo_l == -1:
        print(1)
    else:
        tmp = (memo_l - 1) * memo_l
        for k in range(memo_l, n+1):
            for i in range(1, 2 * k + 1):
                if i % 2 == 0:
                    ad = k + 1
                else:
                    ad = (i + 1) // 2
                tmp += 1
                if tmp > r:
                    break
                elif l <= tmp:
                    ans.append(ad)
        print(*ans)
