import java.io.BufferedInputStream;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Created by Harry on 4/10/20.
 */
public class test {
    public static void main(String[] args){
        Scanner scanner = new Scanner(new BufferedInputStream(System.in));
        int T = scanner.nextInt();
        for(int t=0; t<T; t++){
            long n = scanner.nextLong();
            long l = scanner.nextLong();
            long r = scanner.nextLong();
            long step = 0;
            long sum = 1;
            if(l>1){
                while(l>sum){
                    sum += step;
                    step += 2;
                }
                step -= 2;
            }
            long index = l-(sum-step);
            long count = 0;
            while(count<=(r-l)){
                long node = step/2+1;
                if(index%2==1){
                    System.out.print(node+" ");
                }
                else if(index<step){
                    System.out.print((index/2+1)+" ");
                }
                else if(index==step){
                    System.out.print(1+" ");
                }
                index++;
                if(index>step){
                    step+=2;
                    index = 1;
                }
                count++;
            }
            System.out.println();
        }
    }
}
