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