import sys input = lambda: sys.stdin.readline()[:-1] sys.setrecursionlimit(1000000) t = int(input()) for i in range(t): n, x = map(int, input().split()) p = x - (n+1)*n//2 if p < 0: print(-1) else: taseru = p//n amari = 1+p%n #print(p, taseru, amari) print(*[i+taseru for i in range(2, n+1)][::-1], amari+taseru)