The unique 1 1 digit number in base 9 : a 7 b 5 c 4 6 2 d 8 e 9 where a , b , c , d , e are digits, is divisible by 4 0 (in base 1 0 ).
Find the number (in base 9 ).
This problem is part of the set Advent Calendar 2014 .
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.
We work with the congruence a 7 b 5 c 4 6 2 d 8 e 9 ≡ 0 m o d 4 0 .
Subtracting terms from both sides yields
9 1 0 a + 9 8 b + 9 6 c + 9 2 d + e ≡ − 7 0 5 0 4 6 2 0 8 0 9 m o d 4 0
We know that 9 2 = 8 1 ≡ 1 m o d 4 0 . Applying that to the LHS, we get
( 9 2 ) 5 a + ( 9 2 ) 4 b + ( 9 2 ) 3 c + ( 9 2 ) d + e ≡ a + b + c + d + e m o d 4 0
Doing likewise to the RHS gives
− 7 0 5 0 4 6 2 0 8 0 9 ≡ 9 ( − 2 6 ) − 6 ≡ 0 m o d 4 0
Combining our results, the congruence a + b + c + d + e ≡ 0 m o d 4 0 implies a = b = c = d = e = 8 since 0 ≤ a , b , c , d , e < 9 .
Hence, our number is a 7 b 5 c 4 6 2 d 8 e 9 = 8 7 8 5 8 4 6 2 8 8 8 9 .
Exactly what I did!
Nice question!
By converting the said number to base 10 gives a7b5c462d8e (base 9) = (9^10)(a) + (9^9)(7) + (9^8)(b) + (9^7)(5) + (9^6)(c) + (9^5)(4) + (9^4)(6) + (9^3)(2) + (9^2)(d) + (9)(8) + e (base 10).
Considering modulo 8, it implies for the number in base 10 that a + b + c + d + e must be divisible by 8. It also implies for modulo 10, a + b + c + d + e is divisible by 10.
By congruences, a + b + c + d + e is divisible by lcm(8, 10) = 40. However, since a, b, c, d, and e are digits of the number in base 9, this implies that 8 >= a >= 1 and 0 <= b, c, d, e <= 8. To satisfy the congruence, it forces a = b = c = d = e = 8 implying that the number in base 9 is 87858462888.
Problem Loading...
Note Loading...
Set Loading...
In base n it can be proven that the sum of the digits of a number, k say, is congruent to k m o d ( n − 1 ) , and that the sum of the alternating digits (from the rightmost digit) minus the sum of the remaining digits is congruent to k m o d ( n + 1 ) .
Using this result: a + b + c + d + e + 3 2 is divisible by 8 and a + b + c + d + e + 2 0 is divisible by 1 0 .
As 1 ≤ a + b + c + d + e ≤ 4 0 we can consider cases until we find that only a + b + c + d + e = 4 0 satisfies the conditions. But that means that all the variables must be 8 , meaning that the number is 8 7 8 5 8 4 6 2 8 8 8 as required.