T = int(input()) for t in range(T): N = int(input()) ans = 2 * (N*(N+1)//2) print(ans)