def genGroup(n):
    s = [1]
    for i in range(2, n):
        s.append(n)
        s.append(i)
    s.append(n)
    return s

for tc in range(int(input())):
    n, beg, end = map(int, input().split())
    past = 0
    i = 1
    while past + 2*i < beg:
        past += 2*i
        i += 1
    group = i + 1
    s = genGroup(group)
    pos = beg - past - 1
    res = []
    for i in range(end-beg+1):
        res.append(s[pos])
        pos += 1
        if pos == len(s):
            pos = 0
            group += 1
            s = genGroup(group)
    print(*res)
