I was trying to prove by induction that
[math]\sum_{n=0}^k (-1)^n =\begin{cases} 1, \ \text{if} \ k \ \text{is even} \\ 0, \ \text{if} \ k \ \text{is odd} \end{cases} ..... edited[/math]I distinguished two cases, [imath]k[/imath] even and [imath]k[/imath] odd. Now I had a doubt: in induction, we prove that a property holds for a certain non negative integer [imath]n_0[/imath], assume it holds for [imath]n \ge n_0[/imath] with [imath]n[/imath] non negative integer and shows that this assumption implies that it holds for [imath]n+1[/imath]; we conclude that the property holds for any [imath]n \ge n_0[/imath].
However, if I assume [imath]k[/imath] even, it works for [imath]k=0[/imath] but when I have to prove that it works for [imath]k+1[/imath] I get that, since [imath]k[/imath] is even, is odd and hence I can't prove that this holds for all even [imath]k[/imath] because I am proving it for an odd number. So, intuitively I get that I must show that, for instance, it holds for an even [imath]k_0[/imath], assume it holds for a generic even [imath]k[/imath] and show that this implies it holds for the next even number [imath]k+2[/imath]. And this works, similarly it works for the odd case. The question is: why the standard induction definition seems not to work here, that is, the one replacing [imath]n[/imath] with [imath]n+1[/imath]? I thought that I can write an even number [imath]k=2m[/imath] with [imath]m[/imath] non negative integer and use "classical" induction with [imath]m+1[/imath], but I should work on [imath]k[/imath] and not on [imath]m[/imath]. What is happening here?
[math]\sum_{n=0}^k (-1)^n =\begin{cases} 1, \ \text{if} \ k \ \text{is even} \\ 0, \ \text{if} \ k \ \text{is odd} \end{cases} ..... edited[/math]I distinguished two cases, [imath]k[/imath] even and [imath]k[/imath] odd. Now I had a doubt: in induction, we prove that a property holds for a certain non negative integer [imath]n_0[/imath], assume it holds for [imath]n \ge n_0[/imath] with [imath]n[/imath] non negative integer and shows that this assumption implies that it holds for [imath]n+1[/imath]; we conclude that the property holds for any [imath]n \ge n_0[/imath].
However, if I assume [imath]k[/imath] even, it works for [imath]k=0[/imath] but when I have to prove that it works for [imath]k+1[/imath] I get that, since [imath]k[/imath] is even, is odd and hence I can't prove that this holds for all even [imath]k[/imath] because I am proving it for an odd number. So, intuitively I get that I must show that, for instance, it holds for an even [imath]k_0[/imath], assume it holds for a generic even [imath]k[/imath] and show that this implies it holds for the next even number [imath]k+2[/imath]. And this works, similarly it works for the odd case. The question is: why the standard induction definition seems not to work here, that is, the one replacing [imath]n[/imath] with [imath]n+1[/imath]? I thought that I can write an even number [imath]k=2m[/imath] with [imath]m[/imath] non negative integer and use "classical" induction with [imath]m+1[/imath], but I should work on [imath]k[/imath] and not on [imath]m[/imath]. What is happening here?