# from sys import stdin,stdout
# input = stdin.readline
# print = stdout.write
from math import *
ar=[0,1]
for i in range(2,100010):
	ar.append(i*(i-1)+1)

def jg(ar,n):
	l=0
	r=len(ar)-1
	ans=-1
	while(l<=r):
		m=(l+r)//2
		if(ar[m]>=n):
			ans=m
			r=m-1
		else:
			l=m+1
	return ans

print(ar[:10])
for __ in range(int(input())):
	n,l,r=map(int,input().split())
	for i in range(l,r+1):
		if(i==1):
			print(1,end=" ")
		elif(i==2):
			print(2,end=" ")
		elif(i==3):
			print(1,end=" ")
		else:
			a=jg(ar,i)
			if(i%2==0):
				print(a,end=" ")
			else:
				temp=i-ar[a-1]
				if(temp//2 + 1==a):
					print(1,end=" ")
				else:
					print(temp//2+1,end=" ")
	print()

