t = int(input()) n = [int(input()) for _ in range(n)] for nn in n: print(2 * (nn * (nn + 1) // 2))