This problem is a programming version of Problem 42 from projecteuler.net
The term of a sequence of triangle numbers is given by,
You are given an integer. If it is a triangular number , print the term corresponding to this number, else print
First line of input contains an integer denoting the number of testcases. Each of the next lines contains an integer.
Print the answer corresponding to each test case in a new line.