ans = [] t = int(input()) for _ in range(t): n, x = map(int, input().split()) l = [] ss = 0 bef = 10**18 + 1 for i in range(n, 0, -1): left = i - 1 right = bef while right - left > 1: # mid - i + 1 ~ midの和を求める mid = (left + right) // 2 a = mid - i + 1 b = mid s = - (a + b) * (a - b - 1) // 2 if s >= x - ss: right = mid else: left = mid l.append(right) ss += right bef = right l = l if sum(l) == x else [-1] ans.append(l) for an in ans: print(*an)