T = int(input()) for _ in range(T): n,x = map(int,input().split()) k = n*(n-1)//2 if k+n>x: print(-1) else: ans = [i+1 for i in range(n)] ans[-1] = x-k print(*ans)