# HEY STALKER
sm = [i*2 for i in range(1, 200005)]
for _ in range(int(input())):
    m, l, r = map(int, input().split())
    z = 0
    n = 0
    sd = 0
    while z < l:
        n += 1
        sd += 2
        z += sd
    tot = (r-l+1)
    nn = n-1
    sx = 0
    for t in range(nn):
        sx += sm[t]
    sx += 1
    nikal = l-sx
    ans = []
    for t in range(1, n+1):
        ans.append(t)
        ans.append(n+1)
    n += 1
    ans.reverse()
    while nikal:
        nikal -= 1
        ans.pop()
    ans.reverse()
    while len(ans) < tot:
        for t in range(1, n+1):
            ans.append(t)
            ans.append(n+1)
        n += 1
    print(*ans[:tot])