import sys
input = sys.stdin.readline
T = int(input())

for _ in range(T):
    n, l, r = map(int, input().split())
    L = r - l
    ans = []

    cur = 1
    while l > cur * 2:
        l -= cur * 2
        r -= cur * 2
        cur += 1
    r2 = r
    while r2 + 1 >= cur * 2:
        ans.append(1)
        ans.append(cur + 1)
        for i in range(2, cur + 1):
            ans.append(i)
            ans.append(cur + 1)
        r2 -= cur * 2
        cur += 1
    ans.append(1)
    ans.append(cur + 1)
    for i in range(2, cur + 1):
        ans.append(i)
        ans.append(cur + 1)
    print(*ans[l - 1:r])