Calculate: $$\binom{n}{0}+\binom{n}{4}+\binom{n}{8}+\cdots$$
The solution of this exercise:
Let $$S_1=\binom{n}{0}-\binom{n}{2}+\binom{n}{4}-\binom{n}{8}+\cdots$$
$$S_2=\binom{n}{1}-\binom{n}{3}+\binom{n}{5}-\cdots$$
$$S_3=\binom{n}{0}+\binom{n}{4}+\binom{n}{8}+\cdots$$
$$S_4=\binom{n}{2}+\binom{n}{6}+\binom{n}{10}+\cdots$$
And we consider $$(1+i)^n=S_1+iS_2=\sqrt2^n\left(\cos\frac{n\pi}{4}+i\sin\frac{n\pi}{4}\right)$$ and $$2^{n-1}+S_1=2S_3$$
The problem is that i didn't get the part with $(1+i)^n$.. from here i got lost.I saw more exercises like this with combinatorial sums whose solution was about complex numbers and i wish that someone explain me that method.Thanks!
As we need every fourth term,
Calculate $$a(1+1)^n+b(1-1)^n+c(1+i)^n+d(1-i)^n=\binom n0+\binom n4+\cdots$$
Compare the coefficients of $\binom n0=1$ and those of $\binom nr,1\le r\le3$
to find $a,b,c,d$