Let $\mathcal{A} = \{a \in \{1,2,3,4,5\}^\Bbb N : |a_i- a_{i+1}| = 1 \; \forall i\}.$ Is the set $\mathcal{A}$ countable?
I tried an argument like Cantor's diagonalization process but without success. This problem arises when solving the hiding cat puzzle (https://www.youtube.com/watch?time_continue=2&v=yZyx9gHhRXM). Indeed, if that set is countable and $\{a^1, a^2,...\}$ is an enumeration of $\mathcal{A},$ then we can define $a \in \{1,2,3,4,5\}^\Bbb N$ by $a_i = a^i_i.$ Then, the sequence $a$ solves the puzzle.
For any $g\in \{1,3\}^{\Bbb N}$ let $g^*\in \{1,2,3\}^{ \Bbb N}$ where $g^*(2n)=g(n)$ and $g^*(2n-1)=2.$
Then $g^*\in A.$ And if $g,h \in \{1,3\}^{\Bbb N}$ with $g\ne h$ then $g^*\ne h^*.$
So $\{g^*: g\in \{1,3\}^{\Bbb N}\}$ is an uncountable subset of $A$ because $\{1,3\}^{\Bbb N}$ is uncountable (Cantor).