시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB25714812362.755%

문제

As a worker at the local mall, you have to set out the Christmas ornaments display. The display setup is a triangular pyramid, with the top layer containing one ball, the second from the top containing three, and so on. Each layer’s side length will be equal to their layer number. Write a program to determine the total number of ornaments in a pyramid, given the number of layers.

입력

The first line will contain a single integer n that indicates the number of data sets that follow. Each data set will consist of a single line containing one integer, denoting the number of layers in the pyramid.

출력

Output the total number of ornaments in the pyramid.

예제 입력 1

2
1
4

예제 출력 1

1
20