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 n*(m+m-n+1)//2>=x: ok=m else: ng=m a=list(range(ok-n+1,ok+1))[::-1] for i in range(n*(ok+ok-n+1)//2-x): a[~i]-=1 print(*a if 0 not in a else -1)