#include <iostream>
#include <cmath>
using namespace std;
long long f(int n){
if(n==1)
return 2;
return (2*f(n-1)+2+pow(2,n-1)-1);
}
int main(){
int n,m;
cin>>m;
while(m--){
cin>>n;
cout<<f(n)<<endl;
}
return 0;
}
文章标题
最新推荐文章于 2022-05-12 11:32:07 发布