#include using namespace std; int main(){ int q; cin>>q; while(q--){ int l ,c; cin>>l>>c; if(c%2!=0 || 2*c>(l-1)*l) cout<<-1; else{ for(int i = 1; i<=l; i++){ if(i == 1) cout<<1+c/2<<" "; else if(i == 1+c/2) cout<<1<<" "; else cout<