use std::io; fn main() { let t = read_line().parse::().unwrap(); for _ in 0..t { let tokens = read_line().split_whitespace().map(|v| v.parse::().unwrap()).collect::>(); let n = tokens[0]; let x = tokens[1]; let sum = (1+n)*n/2; if x < sum { println!("{}", -1); continue; } let mut a = (1..=n).collect::>(); a[n-1] += x-sum; println!("{}", a.iter().map(|v| v.to_string()).collect::>().join(" ")); } } fn read_line() -> String { let mut line = String::new(); io::stdin().read_line(&mut line).unwrap(); line.trim_end().to_string() }