I want a simplified form of:
$$\displaystyle N = \sum_{\displaystyle 0 \leq 2m \leq n} \binom {n}{2m} 2^{n-2m}.$$
Actual Question:
There is $ 1 \times n$ rectangle which is broken into $n$ unit squares. Now each square is coloured with either Red, Green, or Blue colours (not necessary that every colour appear in the squares). Let $f(n)$ denote the number of colourings in which Red colour occurs even number of times $(0,2,4,...)$.
What will be the value of $\displaystyle \frac {f(9)}{f(3)} ?$
My attempt:
$\displaystyle f(9) = \binom {9}{0} \times 2^{9} + \binom {9}{2} \times 2^{7} + \binom {9}{4} \times 2^{5} + \binom {9}{6} \times 2^{3} + \binom {9}{8} \times 2^{1}$
Similarly $f(3)$.
Thus I added the terms indivisually... that took a lot of time, then I tried to simplify the summation, but I was unsuccesful in doing so...
I would pefer a hint, not the answer.
The sum is equal to:
$$S={3^n+1 \over 2}$$