The Krilandic language over the alphabet $\Sigma = \{ \mathsf{A,B,C,D,E} \} $ consists of all $6$-letter words without a letter repeating twice successively. In what place does the word $\mathsf{DEBABE}$ appear in a Krilandic dictionary (listing all Krilandic words, lexicographicly)?
I know how to calculate the number of such words using the inclusion–exclusion principle, but how is this helpful here?