/* -*- coding: utf-8 -*- * * 2560.cc: No.2560 A_1 < A_2 < ... < A_N - yukicoder */ #include #include using namespace std; /* constant */ const int MAX_N = 200000; /* typedef */ typedef long long ll; /* global variables */ /* subroutines */ /* main */ int main() { int tn; scanf("%d", &tn); while (tn--) { int n, x; scanf("%d%d", &n, &x); ll s = (ll)n * (n + 1) / 2; if (s > x) { puts("-1"); continue; } for (int i = 1; i < n; i++) printf("%d ", i); printf("%d\n", x - n * (n - 1) / 2); } return 0; }