use std::io::Read; fn main() { let mut s = String::new(); std::io::stdin().read_to_string(&mut s).ok(); s.trim().split('\n').skip(1).for_each(|s| { let n: Vec = s.split(' ').flat_map(str::parse).collect(); if n[0] * (n[0] + 1) / 2 > n[1] { println!("-1"); return; } (1..n[0]).for_each(|i| print!("{} ", i)); println!("{}", n[1] - n[0] * (n[0] - 1) / 2); }); }