T = int(input()) for _ in range(T): N,X = map(int,input().split()) if N*(N+1)//2 > X: print(-1) else: ans = [i for i in range(N,0,-1)] plus = (X - sum(ans))//N for i in range(N): ans[i] += plus ct = 0 while sum(ans) != X: ans[ct%N] += 1 ct += 1 print(*ans)