#include<stdio.h>int main(){ int n,i; scanf("%d",&n); for(i=0;i<n;i++) { int day,x1,x2; scanf("%d",&day); { x2=1; while(day) { x1=(x2+1)*2; x2=x1; day--; }printf("%d\n",x1);} }return 0;}