MathCastle
Linear AlgebraSuperchallengeDiagonalization & Matrix Powers

Diagonalization & Matrix Powers · Superchallenge problem

How many strings of length 1010 made from the digits 0,1,20, 1, 2 have every two neighbouring digits differing by at most 11 (so a 00 is never next to a 22)?