import java.io.*; import java.util.*; import java.text.*; import java.math.*; import java.util.regex.*; public class Solution { public static void main(String[] args) { Scanner in = new Scanner(System.in); int q = in.nextInt(); for(int a0 = 0; a0 < q; a0++){ int len = in.nextInt(); int c = in.nextInt(); int pk = len/2; int xy = pk * (pk+1); if(xy != c) { System.out.println(-1); } else { int[] array = new int[len]; int bb = len-1; for(int i = 0; i < len/2; i++) { array[i] = bb; bb-=2; } int sk = 1; for(int i = len/2; i < len; i++) { array[i] = sk; sk+=2; } for(int i = 0; i < array.length; i++) { System.out.print(array[i]+" "); } System.out.println(); } } } }