import itertools def sub(l,n): return (l + l - (n - 1))*n/2 t = int(input()) for case in range(t): n,x = map(int,input().split()) if x < n*(n+1)/2: print(-1) else: ans = [10**18] for i in range(n-1): left = 0 right = ans[-1]-1 while left + 1 < right: mid = (left + right)//2 if sub(mid - 1, n - 1 - i) < x - mid: left = mid else: right = mid x -= right ans.append(right) ans.append(x) print(*ans[1:])