#include using namespace std; using ll = long long; #define rep(i, s, e) for (int i = (int)(s); i < (int)(e); ++i) #define all(a) (a).begin(),(a).end() int main() { cin.tie(nullptr); ios_base::sync_with_stdio(false); int T; cin >> T; rep(testcase, 0, T) { ll N, X; cin >> N >> X; ll t = N*(N + 1) / 2; if (X < t) { cout << -1 << '\n'; continue; } rep(i, 0, N - 1) cout << i + 1 << ' '; cout << X - N*(N - 1) / 2 << '\n'; } }