Day 9: Find the Missing Digits

The unique 11 11 digit number in base 9 9 : a 7 b 5 c 462 d 8 e 9 \overline{a7b5c462d8e}_9 where a , b , c , d , e a, b, c, d, e are digits, is divisible by 40 40 (in base 10 10 ).

Find the number (in base 9 9 ).

This problem is part of the set Advent Calendar 2014 .


The answer is 87858462888.

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.

3 solutions

Michael Ng
Dec 8, 2014

In base n n it can be proven that the sum of the digits of a number, k k say, is congruent to k m o d ( n 1 ) k \bmod (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 ) k \bmod (n+1) .

Using this result: a + b + c + d + e + 32 a+b+c+d+e+32 is divisible by 8 8 and a + b + c + d + e + 20 a+b+c+d+e+20 is divisible by 10 10 .

As 1 a + b + c + d + e 40 1 \leq a+b+c+d+e \leq 40 we can consider cases until we find that only a + b + c + d + e = 40 a+b+c+d+e = 40 satisfies the conditions. But that means that all the variables must be 8 8 , meaning that the number is 87858462888 \boxed{87858462888} as required.

Arrghhh! I put their sum as an answer.

FACEPALM

Priyatam Roy - 6 years, 6 months ago

Better than mine! Nice one!

Pranjal Jain - 6 years, 5 months ago
Jake Lai
Dec 8, 2014

We work with the congruence a 7 b 5 c 462 d 8 e 9 0 m o d 40 \overline{a7b5c462d8e}_{9} \equiv 0 \mod 40 .

Subtracting terms from both sides yields

9 10 a + 9 8 b + 9 6 c + 9 2 d + e 7050462080 9 m o d 40 9^{10}a+9^{8}b+9^{6}c+9^{2}d+e \equiv -\overline{7050462080}_{9} \mod 40

We know that 9 2 = 81 1 m o d 40 9^{2} = 81 \equiv 1 \mod 40 . 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 40 (9^{2})^{5}a+(9^{2})^{4}b+(9^{2})^{3}c+(9^{2})d+e \equiv a+b+c+d+e \mod 40

Doing likewise to the RHS gives

7050462080 9 9 ( 26 ) 6 0 m o d 40 -\overline{7050462080}_{9} \equiv 9(-26)-6 \equiv 0 \mod 40

Combining our results, the congruence a + b + c + d + e 0 m o d 40 a+b+c+d+e \equiv 0 \mod 40 implies a = b = c = d = e = 8 a = b = c = d = e = 8 since 0 a , b , c , d , e < 9 0 \leq a,b,c,d,e < 9 .

Hence, our number is a 7 b 5 c 462 d 8 e 9 = 87858462888 9 \overline{a7b5c462d8e}_{9} = \boxed{\overline{87858462888}_{9}} .

Exactly what I did!

Pranjal Jain - 6 years, 5 months ago

Nice question!

Aloysius Ng - 6 years, 5 months ago

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.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...