This question is from RMO 1990.
N is a 50 digit number (in the decimal scale). All digits except the 26th digit (from the left) are 1. If N is divisible by 13, find the 26th digit.
Also post a solution, if you do this.
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.
As usual my solution is the worst and involves extreme bashing.I wont even bother to write it up nicely.
Given N = 1 1 1 1 . . . a . . 1 with 1 occurring 2 5 times before a and 2 4 times after it.Expanding it out we get
N = ( 1 0 4 9 + 1 0 4 8 + ⋯ + 1 0 2 5 ) + ( a × 1 0 2 4 ) + ( 1 0 2 3 + ⋯ + 1 ) = 9 1 0 2 5 ( 1 0 2 5 − 1 ) + a × 1 0 2 4 + 9 1 0 2 4 − 1 = 9 1 0 2 5 ( 1 0 2 5 − 1 ) + 9 × a × 1 0 2 4 + 1 0 2 4 − 1 If we use the Geometric Progression Sum formula.
Now clearly 9 ∣ numerator .Because of Fermat 's Little theorem.We must also have that 1 3 ∣ numerator .
Again using FLT we have 1 0 1 2 ≡ 1 ( m o d 1 3 ) . Now u have to use this congruence on the numerator and deduce that 9 × a × 1 0 2 4 ≡ 1 ( m o d 1 3 ) . Since we already have 1 0 2 4 ≡ 1 ( m o d 1 3 ) from FLT ⟹ 9 × a ≡ 1 ( m o d 1 3 ) . Since a is a digit thus 0 ≤ a ≤ 9 .
Make 1 0 cases for a put each one of them and see which one leaves remainder 1 on division by 1 3 .
Clearly 9 × 3 = 2 7 ≡ 1 ( m o d 1 3 ) thus answer is 3 .