#include using namespace std; int main() { int q,i,c,j; cin>>q; while(q-->0) { cin>>i>>c; if(c>(i*(i-1))/2) cout<<"-1"<0;j--) cout<