#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int t; cin >> t; while (t--) { int N; long long X; cin >> N >> X; long long a = (long long)N * (N + 1) / 2LL; if (a > X) { cout << -1 << endl; } else { long long diff = X - a; for (int i = 1; i < N; i++) { cout << i << ' '; } cout << (long)N + diff << endl; } } return 0; }