// Author:PanDaoxi #include <iostream> using namespace std; int main(){ int n,f[101]={}; cin>>n; f[n]=n; //第n名同学做了n道题 while(n>=0){ f[n-1]=(f[n]+n-1)*2; n--; } cout<<f[1]<<endl; return 0; }