import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for (int i = 0; i < T; i++) { long N = sc.nextLong(); long X = sc.nextLong(); solve(N, X); } } static void solve(long N, long X) { if (X < N * (N+1) / 2) { System.out.println(-1); return; } for (int i = 1; i <= N-1; i++) System.out.print(i + " "); System.out.println(X - (N * (N-1) / 2)); } }