int step(int aa){ if (aa==1) return 1; return 2*sum(aa-1); } void main() { int sum =0; for(int i=1;i<=10;i++) sum+=step(i); printf("%d\n",sum); }