import java.io.*;
import java.util.*;

public class C {

	public static void main(String[] args) {
        FastScanner in = new FastScanner();
        PrintWriter out = new PrintWriter(System.out);
        int t = in.nextInt();
        while(t-->0) { 
        	long n = in.nextInt(), l = in.nextLong(), r = in.nextLong();
        	int x = (int)Math.ceil(((2*n-1)-Math.sqrt((2*n-1)*(2*n-1)-4*l))/2);
        	if(l>n*(n-1)) out.println(1);
        	else{
        		long y = l-x*(x-1);
        		long yy = y;
        		y = x + (y-1)/2 + 1;
        		int cnt = 0;
        	 	long p = r-l+1;
        	 	//out.println(x+" "+y);
        		if(yy%2==0){
        			out.print(y+" ");
        			p--;
        		}
        		if(r>n*(n-1)) p--;
        	 	while(true){
        	 		if(cnt<p){
        	 			cnt++;
        	 			out.print(x+" ");
        	 		}
        	 		else break;
        	 		if(cnt<p){
        	 			cnt++;
        	 			out.print(y+" ");
        	 			y++;
        	 		}
        	 		else break;
        	 		if(y==n+1){
        	 			x++;
        	 			y = x+1;
        	 		}
        	 	}
        	 	if(r>n*(n-1)) out.print(1);
        	 	out.println();
        	}
        }
        out.flush();
	}
	
	static class FastScanner {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringTokenizer st = new StringTokenizer("");
		
		String next() {
			while(!st.hasMoreTokens())
				try { st = new StringTokenizer(br.readLine()); }
				catch(IOException e) {}
			return st.nextToken();
		}
		
		String nextLine(){
			try{ return br.readLine(); } 
			catch(IOException e) { } return "";
		}
		
		int nextInt() {
			return Integer.parseInt(next());
		}
		
		long nextLong() {
			return Long.parseLong(next());
		}
		
		int[] readArray(int n) {
			int a[] = new int[n];
			for(int i=0;i<n;i++) a[i] = nextInt();
			return a;
		}
	}
}
