T = int(input()) for _ in raneg(T) : N = int(input()) print(N * (N + 1))