题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2042
简单的递推题。’
#include<stdio.h>
int main()
{
int n,a,m;
scanf("%d",&n);
while(n--)
{
scanf("%d",&a);
m=3;
while(a--)
{
m=(m-1)*2;
}
printf("%d\n",m);
}
return 0;
}