I have the following question with me:
"In the sequence $$1,9,7,7,4,7,5,3,9,4,1,....$$ every term from the fifth one is the sum of the previous 4 modulo 10. Do the numbers $1977$(apart from beginning) and $0197$ ever occur in the sequence? If yes, does it occur a finite number of times or not?"
How do I solve this question? The only advancement I have made is that when the sequence is written modulo 2, I get $$1,1,1,1,0,1,1,1,1,0....$$
How do I proceed from here?
First, you can consider the sequence with index in whole integers. For example, we can define $a_{0} = 0$ since $0 + 1 + 9 + 7\equiv 7$ mod 10 and $a_{-1} = 7$ since $7 + 0 + 1 + 9 \equiv 7$ mod 10. Now try to explain that there exists $m\neq n$ such that $(a_{m}, a_{m+1}, a_{m+2}, a_{m+3}) = (a_{n}, a_{n+1}, a_{n+2}, a_{n+3})$ by using the pigeonhole principle.