// 
import java.math.*;
import java.util.*;
import java.io.*;
  
public class D { 
  
    static int test = 10; // 0 for local testing, 1 for std input

    static BufferedReader in;
    static PrintWriter out = new PrintWriter(System.out);
    static String file = "../in";
    static int inf = 1_000_000;

    static void swap(int[]ary, int i, int j)
    {
        int t = ary[i];
        ary[i] = ary[j];
        ary[j] = t;
    }
    
    static String[] split() throws Exception
    {
        return in.readLine().split(" ");
    }

    static int readInt() throws Exception
    {
        return Integer.valueOf(in.readLine());
    }

    static int[] toIntArray() throws Exception
    {
        String[] sp = split();
        int n = sp.length;
        int[] ary = new int[n];
        for(int i = 0; i < n; i++) ary[i] = Integer.valueOf(sp[i]);
        return ary;
    }

    static long[] toLongArray() throws Exception
    {
        String[] sp = split();
        int n = sp.length;
        long[] ary = new long[n];
        for(int i = 0; i < n; i++) ary[i] = Long.valueOf(sp[i]);
        return ary;
    }    

    public static void main(String[] args) throws Exception
    {
        int _k = Integer.valueOf("1");
        if(test > 0) in = new BufferedReader(new InputStreamReader(System.in));
        else in = new BufferedReader(new FileReader(file));
        if(test < 0) {String[] str = in.readLine().split(" ");}

        
        
        /****************************************************/  
        /****************************************************/
        /****************************************************/
        /****************************************************/

        int t = readInt();
        for(int tt = 0; tt < t; tt++)
        {
            long[] ary = toLongArray();
            long n = ary[0], L = ary[1], R = ary[2];
            StringBuilder sb = new StringBuilder();
            
            long idx = 0;
            while(idx * (idx + 1) < L) idx++;
            idx--;
            long offset = L - idx * (idx + 1) - 1;
            // now construct
            int len = (int)(R - L + 1);

            List<Long> list = new ArrayList<>();
            while(list.size() < R - L + 1)
            {
                for(int i = 1; i < idx; i++)
                {
                    list.add(0L + i);
                    list.add(idx);
                }
                idx++;
            }
            
            int from = (int) offset;
            int to = from + len;
            for(int i = from; i < to; i++)
            {
                out.printf("%d ", list.get(i));
            }
            out.printf("\n");

        }

        /****************************************************/
        /****************************************************/
        /****************************************************/
        /****************************************************/

        out.flush();
    }
}