T = int(input()) for t in range(T): N, X = map(int, input().split()) summ_until_final2 = (N) * (N - 1) // 2 if (summ_until_final2 + N > X): print(-1) else: print(*([i+1 for i in range(N-1)] + [X - summ_until_final2]))