/*
[ ( ^ _ ^ ) ]
*/

// problem: cf/1334/D

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


public class d {
    int INF = (int)1e9;
    long MOD = 1000000007;

    long go(long n) {
        long l = 0, h = n+1;
        while(l<h) {
            long m = (l+h+1)/2;
            long s = m*(m-1);
            // show("lh", l, h, m, s);
            if(s<=n) l = m;
            // else if(s==n) return m;
            else h = m-1;
        }
        return l*(l-1)==n?l:l+1;
    }

    void solve(InputReader in, PrintWriter out) throws IOException {
        int n = in.nextInt();
        long l = in.nextLong();
        long r = in.nextLong();

        long i = 1;
        long p = 0;
        while(true) {
            long x = 2*(i-1);
            p += x;
            // show("ixp", i, x, p);
            if(l<=p) {
                break;
            }
            i++;
        }
        long start = l - (i-1)*(i-2);
        long j = i;
        p -= 2*(i-1);
        while(true) {
            long x = 2*(j-1);
            p += x;
            if(r<=p) {
                break;
            }
            j++;
        }
        long end = r - (j-1)*(j-2);

        // long i = go(l);
        // long start = l - (i-1)*(i-2);
        // long j = go(r);
        // long end = r - (j-1)*(j-2);
        // show("ij", i, start, j, end);
        while(true) {
            if(start>2*(i-1)) {
                start = 1;
                i++;
                continue;
            }
            if(i>j) {
                break;
            }
            if(i==j && start>end) {
                break;
            }
            if(start%2==0) {
                out.print(i+" ");
            } else {
                out.print((start+1)/2+" ");
            }
            start++;
        }
        // show("--");
        out.println();
    }
    

    public static void main(String[] args) throws IOException {
        InputReader in = new InputReader();
        PrintWriter out = new PrintWriter(System.out);
        int t = in.nextInt();
        while(t-- >0) {
            new d().solve(in, out);
        }
        out.close();
    }
    
    public static void show(Object... o) {
        System.out.println(Arrays.deepToString(o));
    }
    
    static class InputReader {
        static BufferedReader br;
        static StringTokenizer st;
        public InputReader() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }
        String next() {
            while (st == null || !st.hasMoreTokens()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
        int nextInt() { return Integer.parseInt(next()); }
        long nextLong() { return Long.parseLong(next()); }
        double nextDouble() { return Double.parseDouble(next()); }
    }
}