I was solving this algorithmic problem. This problem boils down to finding the finding the number of binary strings of given length $n$ such that those strings don't have any even-length run of $0$ or $1$. The post says that the answer is twice the $n$th term of the Fibonacci series, where the term numbering starts at $0$.
I have tried myself to arrive at the same solution but without success. Any help/hint is appreciated.
Let $A_n$ be the number of valid strings of length $n$
We have $A_{n+1} = A_n+A_{n-2}+A_{n-4}+\dots$ with initial conditions $A_0=1$, $A_1=2$ and $A_2=2$ seen by that we can form a valid string of length $n+1$ by taking a shorter string and putting an odd number of whatever the other element that was formerly at the end at the end of the string.
Now... consider the expression for $A_{n-1}$ using the above...