T=int(input()) for _ in range(T): N,X=list(map(int, input().split())) s=(1+N)*N//2 if s>X: print(-1) continue x=(X-s)//N r=X-(s+x*N) ans=[] for i in range(N,0,-1): a=i+x if r>0: a+=1 r-=1 ans.append(a) print(*ans)