public int ganyang(int cun) { if (cun == 7) { return 2; }
int sum = (ganyang(cun + 1) + 1) * 2;
return sum; }
Console.WriteLine(new Program().ganyang(0));