static int g(int a) { if (a > 0) return -2 * g(a - 2) + 2; else return -2; } Console.WriteLine(g(5));