t = int(input()) for _ in range(t): n,x = map(int, input().split()) s = x f = True ans = [0]*n for i in range(1, n): #print(s, i) if s > ans[i-2]: ans[i-1] = i s -= i else: f = False if s > ans[-2]: ans[-1] = s s = 0 else: f = False #print(ans) if f == True: print(*ans) else: print(-1)