using System; using static System.Console; using System.Linq; using System.Collections.Generic; class Program { static int NN => int.Parse(ReadLine()); static long[] NList => ReadLine().Split().Select(long.Parse).ToArray(); public static void Main() { Solve(); } static void Solve() { var t = NN; var ans = new string[t]; for (var u = 0; u < t; ++u) { var c = NList; var (n, x) = (c[0], c[1]); ans[u] = Down(n, x); } WriteLine(string.Join("\n", ans)); } static string Down(long n, long x) { if (x < n * (n + 1) / 2) return "-1"; var ng = 0L; var ok = x; while (ok - ng > 1) { var mid = (ok + ng) / 2; if ((mid * 2 - n + 1) * n / 2 >= x) ok = mid; else ng = mid; } var sum = 0L; var ans = new long[n]; for (var i = 0; i < n; ++i) { ans[i] = ok - i; sum += ok - i; } for (var i = n - 1; i >= 0; --i) if (sum > x) { --ans[i]; --sum; } return string.Join(" ", ans); } }