Three Sums

For each N, print the sum of the first N positive integers, the first N odd numbers, and the first N even numbers.

Easy2MathImplementationNo attempts yetTime limit2sMemory limit512 MB

Problem

You are given a positive integer NN. Write a program that computes the following three sums.

Input

The first line contains the number of test cases tt. (1t100001 \le t \le 10000)

Each of the next tt lines contains one integer NN. (1N100001 \le N \le 10000)

Output

For each test case, print three integers S1S_1, S2S_2, S3S_3 on one line, separated by single spaces.

  • S1S_1: the sum of the NN smallest positive integers
  • S2S_2: the sum of the NN smallest positive odd integers
  • S3S_3: the sum of the NN smallest positive even integers