def func(n,x): if n*(n+1)//2>x: return False else: l=[i for i in range(1,n)] l=l+[x-sum(l)] return(l) t=int(input()) for i in range(t): n,x=map(int,input().split()) if func(n,x)==False: print(-1) else: print(*func(n,x))