def solve_one(): N, X = map(int, input().split()) mi = N * (N + 1) // 2 if X < mi: print(-1) return ans = [] s = 0 prev_hi = X + 1 for i in range(N): rest = N - i lo, hi = N - i - 1, prev_hi - 1 while lo + 1 < hi: mi = (lo + hi) // 2 t = (mi + (mi - rest + 1)) * rest // 2 if s + t >= X: hi = mi else: lo = mi ans.append(hi) prev_hi = hi s += hi print(*ans) if __name__ == "__main__": T = int(input()) for i in range(1, T + 1): solve_one()