from sys import stdin input=lambda :stdin.readline()[:-1] for _ in range(int(input())): n=int(input()) print(n*(n+1))