import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner input = new Scanner(System.in);
int numberFir = input.nextInt();
int numberSec,i;
int numberSum;
int temp = 0;
while(true){
numberSec = input.nextInt();
numberSum = 1;
temp += 1;
for(i = 0; i<numberSec; i++){
numberSum *= 2;
}
numberSum -= 1;
System.out.println(numberSum);
if(temp == numberFir)
break;
}
}
}
用java写的,新的做法新的感受。。。。。