#include using namespace std; void fast_io() { ios::sync_with_stdio(false); cin.tie(nullptr); } void solve() { long long n, x; cin >> n >> x; if (x < n * (n + 1) / 2) { cout << -1 << endl; return; } vector ans(n); for (long long i = n - 1; i >= 0; i--) { ans[i] = (x - i * (i + 1) / 2 + i) / (i + 1); x -= ans[i]; } for (int i = 0; i < n; i++) { cout << ans[i] << (i + 1 == n ? "\n" : " "); } } int main() { fast_io(); int t; cin >> t; for (; t--;) { solve(); } }