T=int(input()) for _ in range(T): n,x=map(int,input().split()) if n*(n+1)//2>x: print(-1) continue ok=10**10 ng=n-1 while ok-ng>1: m=(ok+ng)//2 if m*(m+1)//2>=x: ok=m else: ng=m a=[ok-i for i in range(n)] for i in range(ok*(ok+1)//2-x): a[~i]-=1 print(*a)