// Java solution for problem L // Author: Lech Duraj import java.util.Scanner; public class l { public static void main(String args[]) { Scanner in = new Scanner(System.in); int TT = in.nextInt(); in.nextLine(); while(TT>0) { TT--; int k = in.nextInt(); in.nextLine(); System.out.println((1 << k)-1); } } }