T = int(input()) for i in range(T): N,X = map(int,input().split()) Y = N if N*(N+1)//2 > X: print(-1) else: A = list(range(N,0,-1)) X -= N*(N+1)//2 for i in range(N): A[i] += X//N for j in range(X%N): A[i] += 1 print(*A)