#include <iostream>
#include <cmath>
#include <bits/stdc++.h>
#define int long long int
#define pb push_back
#define F first
#define S second
#define mp make_pair
#define M 1000000007
#define ms1(x) memset(x,-1,sizeof(x))
#define ms0(x) memset(x,0,sizeof(x))
using namespace std;
main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int q;
    cin>>q;
    for(int x=0; x<q; x++)
    {
        int n,l,r;
        cin>>n>>l>>r;
        l--;r--;
        int a;
        for(int i=2; i<=n; i++)
        {
            if(l<=i*(i-1) && l!=0)
            {
                a = i;
                break;
            }
        }
        if(l==0)
        {
            cout<<1<<" ";
            l++; a=2;
        }
        for(int i=l; i<=r; i++)
        {
            if(i%2!=0)
            {
                cout<<a<<" ";
            }
            else if(i==a*(a-1))
            {
                cout<<1<<" ";
                a++;
            }
            else if(i%2==0)
            {
                cout<<(i-(a-1)*(a-2))/2 + 1<<" ";
            }
        }
        cout<<"\n";
    }
}
