#include #if __has_include("./debug.cpp") #include "./debug.cpp" #else #define debug(...) #define print_line #endif using namespace std; using ll = long long; void solve() { int N; ll X; cin >> N >> X; if (X < 1ll * N * (N + 1) / 2) { cout << "-1\n"; return; } vector ans; for (int i = 0; i < N - 1; i++) ans.push_back(i + 1); ans.push_back(X - 1ll * (N - 1) * N / 2); for (int i = 0; i < N; i++) cout << ans[i] << ' '; cout << '\n'; } int main() { int T; cin >> T; for (int i = 0; i < T; i++) { solve(); } }