#include #include using i64 = long long; using i128 = __int128_t; void solve() { i64 n, x; std::cin >> n >> x; i64 check = (n - 1) * (n + 2) / 2; if (check >= x) { std::cout << "-1\n"; return; } i64 S = n * (n - 1) / 2; i64 r = x - S; for (int i = 1; i <= n - 1; i++) { std::cout << i << ' '; } std::cout << r << '\n'; } int main() { std::cin.tie(nullptr)->sync_with_stdio(false); int t; std::cin >> t; while (t--) { solve(); } return 0; }