import java.io.*;
import java.util.*;
public class Sol4{
	public static void main(String[] args) throws IOException{
		Scanner sc = new Scanner(System.in);
		int t = sc.nextInt();
		while(t-->0) {
			int n = sc.nextInt();
			long l = Long.parseLong(sc.next());
			long r = Long.parseLong(sc.next());
			long max = n*(n-1)+1;
			long idx = 0;
			long count = 1;
			while(idx<l) {
				idx+=count*2;
				count++;
			}
			idx-=(count-1)*2-1;
			long cnt = 1;
			long nxt = idx+(count-1)*2;
			while(idx<r) {
				if(idx == nxt) {
					cnt = 1;
					count++;
					nxt = idx+(count-1)*2;
				}
				if(idx>=l) {
				if(idx%2==0) {
					System.out.print(count + " ");
				}else {
					System.out.print(cnt + " ");
					cnt++;
				}
				}
				idx++;
			}
			if(idx == nxt) {
				cnt = 1;
				count++;
				nxt = idx+(count-1)*2;
			}
			if(idx%2==0) {
				System.out.println(count);
			}else {
				System.out.println(cnt);
				cnt++;
			}
			
		}
		sc.close();
	}
}
