import sys input = sys.stdin.readline for _ in range(int(input())): N = int(input()) print(N*(N+1))