import sys
from math import sqrt, floor

def get_ints(): return map(int, sys.stdin.readline().strip().split())
def get_array(): return list(map(int, sys.stdin.readline().strip().split()))
def input(): return sys.stdin.readline().strip()


def main():

    T = int(input())
    while T:
        n, l, r = get_ints()

        for i in range(l, r+1):
            k = int(floor(sqrt(i - 0.75) - 0.5))
            j = int(floor((i - k**2 - k) * 0.5))
            if i&1:
                print j+1,
            else:
                print k+2,
        print
        T-=1

main()