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(); // your code goes here int most = 0; for (int i = len - 1; i > 0; i--){ most = most + i; } int least = 0; int lenTemp = len - 1; while (lenTemp > 0){ least = least + lenTemp; lenTemp = lenTemp - 2; } if (c > most){ System.out.println(-1); }else if (c < least){ System.out.println(-1); }else{ if (c == most){ for (int i = 0; i < len; i++){ System.out.print(i + 1 + " "); } System.out.println(); }else if (c == least){ if(len % 2 == 0){ for (int i = len; i > 0; i = i - 2){ System.out.print(i + " "); } for (int i = 2; i <= len; i = i + 2){ System.out.print(i + " "); } System.out.println(); }else{ for (int i = len - 1; i > 0; i = i-2){ System.out.print(i + " "); } for (int i = 1; i <= len; i = i + 2){ System.out.print(i + " "); } System.out.println(); } }else{ System.out.println("blah"); } /*int[] arr = CreateArray(len, c); for (int i = 0; i < arr.length; i++){ System.out.println(arr[i]); }*/ } } } /*public int[] CreateArray(int len, int c){ }*/ }