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