#include void task() { long long N, X; std::cin >> N >> X; std::vector A(N); long long s{}; for (int i = 0; i < N; ++i) A[i] = i+1, s += i+1; if (s > X) { std::cout << "-1" << '\n'; } else { long long d = X - s; for (int i = 0; i < N; ++i) A[i] += d / N; d %= N; std::reverse(A.begin(), A.end()); for (int i = 0; i < d; ++i) ++A[i]; for (size_t i = 0; i < A.size(); ++i) std::cout << A[i] << " \n"[i+1 == A.size()]; } } int main() { std::ios_base::sync_with_stdio(false); std::cin.tie(nullptr); int T; std::cin >> T; while (T--) task(); }