Find a recurrence relation for number of ways to lay out a walkway with tiles if tiles are red,green or grey so that no two red tiles are adjacent and tiles of the same colour are considered indistinguishable.
Why is my method wrong?
Let $a_n$ be the number of ways to lay out a walkway of length $n$ such that no two red tiles are adjacent.
Case 1: Let the first tile be red; so then there are $n-1$ tiles to lay. Thus, the number of layouts after a red starting tile is $a_{n-1}$
Similarly for the green and grey tiles.
Case 2: Let the first tile be red then green/grey; then there are $a_{n-2}$ ways to have a layout without two adjacent red tiles.
Case 3: Let the first tile be grey/green and then red; then there are also $a_{n-2}$ ways.
So total is $a_n = 3\times a_{n-1} + 2\times a_{n-2} + 2\times a_{n-2}$.