local mfl, mce = math.floor, math.ceil local ffi = require("ffi") local C = ffi.C ffi.cdef[[ long long atoll(const char*); ]] local function lltonumber(str) return C.atoll(str) end local q = io.read() q = tonumber(q) for iq = 1, q do local n, x = io.read():match("(%d+) (%d+)") n = tonumber(n) x = lltonumber(x) local min = mfl(n * (n + 1) / 2) min = 1LL * min if x < min then print(-1) else local t = {} for i = 1, n - 1 do t[i] = i x = x - 1LL * i end x = tostring(x):gsub("LL", "") t[n] = x print(table.concat(t, " ")) end end