#K67832. Magical Numbers Sum

    ID: 32730 Type: Default 1000ms 256MiB

Magical Numbers Sum

Magical Numbers Sum

This problem requires you to calculate the sum of the first N magical numbers. A magical number is defined as a power of 2 starting from 1, i.e. 1, 2, 4, 8, … . The sum can be computed using the formula: $$\sum_{i=0}^{N-1}2^i = 2^N - 1$$. Given an integer N, compute and output the sum of the first N magical numbers.

inputFormat

The first line of input contains a single integer T representing the number of test cases. Each of the following T lines contains one integer N.

outputFormat

For each test case, output a single line containing the sum of the first N magical numbers, which is computed as $$2^N - 1$$.

## sample
3
1
2
3
1

3 7

</p>