How many ways are there to arrange $N$ black and white balls such that there is no sequence which has strictly more than 2 consecutive white or black balls.
So BBWWBWBW is fine but BBWWWBWBW is not since there is a WWW sequence.
You have as many black and white balls as you want, but the total balls in the sequence is some value $N$.
A couple of hints:
1) The number of arrangements can be broken down into the number of arrangements that start with a B and the number that start with a W.
2) If it starts with a W: there must be either one W or two Ws. After that, we must have a sequence that starts with a B and still satisfies the original property.
3) If it starts with a B: there must be either one B or two Bs. After that, we must have a sequence that starts with a W and still satisfies the original property.
This should feel very much like it is heading toward a recurrence relation for the numbers that you want. But, it looks like a system of recurrence relations: one for $b_n$ in terms of previous values of $w_j$, and one for $w_n$ in terms of previous values of $b_i$. However, there may be a symmetry argument that could help.