import java.util.*;
import java.lang.*;
public class Solution{
  public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    int t = input.nextInt();
    double n;
    double l;
    double r;
    double base;
    double nonBase;
    double startIndex;
    for(int i = 0; i < t; i++){
      n = input.nextDouble();
      l = input.nextDouble();
      r = input.nextDouble();
      for(double j = l; j < r + 1; j++){
        base = Math.ceil(Math.sqrt(j));
        if(((base * (base-1)) + 1) < j){
          base = base + 1;
        }
        startIndex = ((base - 1) * (base - 2)) + 1;
        nonBase = base - (j-startIndex)/2;
        if(j % 2 == 0){
          System.out.printf("%d ", (int) base);
        }else{
          System.out.printf("%d ", (int) nonBase);
        }
      }
      System.out.println("");
    }
  }
}
