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 = floor(sqrt(i - (3/4)) - 0.5)
            j = floor((i - k**2 - k)/2)
            if i&1:
                print int(j+1),
            else:
                print int(k+2),
        print
        T-=1

main()