def I(): return input() def N(): return int(input()) def M(): return map(int,input().split()) def L(): return list(map(int,input().split())) #----------------------------------------- T = N() for test in range(T): N,X = M() mini = N*(N+1)//2 if mini > X: print(-1) continue for i in range(N-1): print(i+1,end = " ") print(N + X-mini)