Problem

Source: 2021 Czech-Polish-Slovak Match, P4

Tags:



Determine the number of $2021$-tuples of positive integers such that the number $3$ is an element of the tuple and consecutive elements of the tuple differ by at most $1$. Walther Janous (Austria)