A sequence is as follows:
1,0,1,0,1,0,3,5,0,9...
such that every term (except the first six terms) is equal to the last digit of the sum of the last six terms.
Is it true that the sequence contains six consecutive terms equal to 0,1,0,1,0,1?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
This is one of the sweetest solutions I've ever seen. It is due to one of the INMO trainers who have taught me.
Define n i as the i t h term of the sequence.
Also, define X i = n i + 2 n i + 1 + 3 n i + 2 + 4 n i + 3 + 5 n i + 4 + 6 n i + 5
Now, X i ≡ n i + 2 n i + 1 + 3 n i + 2 + 4 n i + 3 + 5 n i + 4 + 6 n i + 5 m o d 5
or, X i ≡ n i + 2 n i + 1 + 3 n i + 2 + 4 n i + 3 + 5 n i + 4 + 6 ( n i − 1 + n i + n i + 1 + n i + 2 + n i + 3 + n i + 4 ) m o d 5
or, X i ≡ n i − 1 + 2 n i + 3 n i + 1 + 4 n i + 2 + 5 n i + 3 + 6 n i + 4 m o d 5
or, X i ≡ X i − 1 m o d 5
So, all X i s are congruent to each other m o d 5 .
Initially, X i ≡ 4 m o d 5 .
If the terms 0,1,0,1,0,1 exist consecutively then X i ≡ 1 2 ≡ 7 m o d 5 .
So, the six terms 0,1,0,1,0,1 cannot occur consecutively.
(P.S-I still don't know how he came up with the idea of suddenly defining X i )