This problem deals with the following expression:
Given , you have to determine the sum of the expression up to the -th term.
The first line of input contains the number of test cases (). The next lines each contains an integer ().
For each case find the sum up to -th term of the given series.
Input | Output |
---|---|
3 1 2 5 | 1 -1 -1 |