The sequence $1,2,3,4,0,9,6,9,4,8,7,\ldots$ is formed so that each term, starting from the fifth, is the units digit of the sum of the previous four. (a) Do the digits $2,0,0,4$ occur in the sequence in this order? (b) Will the initial digits $1,2,3,4$ ever occur again in this order?
Problem
Source:
Tags: algebra, Sequence
08.04.2021 19:09
WRONG Part (a): assume 2004 occurs. then 22004 must also occur. now lets find the x in x22004 such that it also occurs. we must have 0=0+2+2+x so x=-4. however, this is not a units digit, so 2004 will not ever occur in the sequence. QED sorry for bad proof. i can make nicer if needed.
08.04.2021 19:12
@above. That is false. $x=6$ also gives a unit digit of $0$. I really hope 1st graders aren't solving this.
08.04.2021 19:16
Part (b): proof = [1, 2, 3, 4, 0]while proof[-4:] != [1, 2, 3, 4]: proof += [sum(proof[-4:]) % 10]print("yes", proof, "QED")proof = [1, 2, 3, 4, 0] while proof[-4:] != [1, 2, 3, 4]: proof += [sum(proof[-4:]) % 10] print("yes", proof, "QED")RunResetPop Out / woah imagine trying to bash this out rip croatian first graders
08.04.2021 19:30
Yea, above beat me to bashing with a much better code as well. But here is an actual solution (without bash)
Too lazy to make an actually good proof, sorry.
08.04.2021 20:03
Dear Friends of AoPS,