if __name__ == '__main__':
    for _ in range(int(input())):
        n, l, r = map(int, input().split())

        sarr = [0]

        for i in reversed(range(1, n)):
            sarr.append(sarr[-1] + 2 * i - 1)

        sarr.append(sarr[-1] + n)

        li = ri = None

        for i, ns in enumerate(sarr):
            if li is None and ns >= l:
                li = i
            if ns >= r:
                ri = i
                break

        b = False
        if ri == n:
            b = True
            ri -= 1

        rarr = []

        idx = sarr[li - 1]

        for i in range(li, ri + 1):
            idx += 1
            hi = n + 2 - i
            rarr.append((hi, idx))

            for j in range(2, hi - 1):
                idx += 1
                rarr.append((j, idx))
                idx += 1
                rarr.append((hi, idx))

        if b:
            for i in range(2, n + 2):
                idx += 1
                rarr.append((i, idx))

        print(*list(map(lambda o: 1 if o == n + 1 else o, map(lambda o: o[0], filter(lambda o: l <= o[1] <= r, rarr)))))
