#include <iostream> using namespace std; int d[15]; int main(){ d[1] = 1; for(int i=2;i<=10;i++){ d[i] = (d[i-1]+1)*2; } cout << d[10]; return 0; }