Maths Olympiad Prep

Library / CEMC Gauss (Grade 8) /507 of 525

CEMC Gauss (Grade 8), 2022

Number theory Difficulty 3.8 AMC 10/12 Find the answer Canada

The number 385 is an example of a three-digit number for which
one of the digits is the sum of the other two digits. How many numbers
between 100 and 999 have this property?

Pick one

Solution

A palindrome greater than 10 000 and less than 100 000 is a
5-digit positive integer of the form abcbaabcba, where a,ba, b and cc are digits and a≠0a\neq0.

A positive integer is a multiple of 18 if it is a multiple of both 2 and
9 (and a positive integer that is a multiple of both 2 and 9 is a
multiple of 18).

A positive integer is a multiple of 2 if it is even, and thus the digit
aa is equal to 2,4,62,4,6 or 8 (recall a≠0a\neq0).

A positive integer is a multiple of 9 exactly when the sum of its digits
is a multiple of 9, and thus a+b+c+b+aa+b+c+b+a or 2a+2b+c2a+2b+c is a multiple of 9.

Next we consider four possible cases, one case for each of the possible
values of aa.

Case 1: a=2a=2

When a=2a=2, we require that 2a+2b+c=4+2b+c2a+2b+c=4+2b+c be a multiple of 9.

Since 4+2b+c≥44+2b+c\geq4, then the
smallest possible multiple of 9 that 4+2b+c4+2b+c can equal is 9.

Since b≤9b\leq 9 and c≤9c\leq9, then 4+2b+c4+2b+c is at most 4+2(9)+9=314+2(9)+9=31.

Thus, 4+2b+c4+2b+c can equal 9,189, 18 or 27, which gives 2b+c2b+c equal to 5,145, 14 or 23 respectively.

Next, we determine the possible values of bb and cc so that 2b+c2b+c is equal to 5,145, 14 or 23.

2b+c=52b+c=52b+c=142b+c=142b+c=232b+c=23
b=2,c=1b=2, c=1b=7,c=0b=7, c=0b=9,c=5b=9, c=5
b=1,c=3b=1, c=3b=6,c=2b=6, c=2b=8,c=7b=8, c=7
b=0,c=5b=0, c=5b=5,c=4b=5, c=4b=7,c=9b=7, c=9
b=4,c=6b=4, c=6
b=3,c=8b=3, c=8

Thus when a=2a=2, there are 3+5+3=113+5+3=11 such palindromes.

Case 2: a=4a=4

When a=4a=4, we require that 2a+2b+c=8+2b+c2a+2b+c=8+2b+c be a multiple of 9.

Since 8+2b+c≥88+2b+c\geq8, then the
smallest possible multiple of 9 that 8+2b+c8+2b+c can equal is 9.

Since b≤9b\leq 9 and c≤9c\leq9, then 8+2b+c8+2b+c is at most 8+2(9)+9=358+2(9)+9=35.

Thus, 8+2b+c8+2b+c can equal 9,189, 18 or 27, which gives 2b+c2b+c equal to 1,101, 10 or 19 respectively.

Next, we determine the possible values of bb and cc so that 2b+c2b+c is equal to 1,101, 10 or 19.

2b+c=12b+c=12b+c=102b+c=102b+c=192b+c=19
b=0,c=1b=0, c=1b=5,c=0b=5, c=0b=9,c=1b=9, c=1
b=4,c=2b=4, c=2b=8,c=3b=8, c=3
b=3,c=4b=3, c=4b=7,c=5b=7, c=5
b=2,c=6b=2, c=6b=6,c=7b=6, c=7
b=1,c=8b=1, c=8b=5,c=9b=5, c=9

Thus when a=4a=4, there are 1+5+5=111+5+5=11 such palindromes.

Case 3: a=6a=6

When a=6a=6, we require that 2a+2b+c=12+2b+c2a+2b+c=12+2b+c be a multiple of 9.

Since 12+2b+c≥1212+2b+c\geq12 and 12+2b+c≤12+2(9)+9=3912+2b+c\leq12+2(9)+9=39, then 12+2b+c12+2b+c can equal 18, 27 or 36, which
gives 2b+c2b+c equal to 6, 15 or 24,
respectively.

2b+c=62b+c=62b+c=152b+c=152b+c=242b+c=24
b=3,c=0b=3, c=0b=7,c=1b=7, c=1b=9,c=6b=9, c=6
b=2,c=2b=2, c=2b=6,c=3b=6, c=3b=8,c=8b=8, c=8
b=1,c=4b=1, c=4b=5,c=5b=5, c=5
b=0,c=6b=0, c=6b=4,c=7b=4, c=7
b=3,c=9b=3, c=9

Thus when a=6a=6, there are 4+5+2=114+5+2=11 such palindromes.

Case 4: a=8a=8

When a=8a=8, we require that 2a+2b+c=16+2b+c2a+2b+c=16+2b+c be a multiple of 9.

Since 16+2b+c≥1616+2b+c\geq16 and 16+2b+c≤16+2(9)+9=4316+2b+c\leq16+2(9)+9=43, then 16+2b+c16+2b+c can equal 18, 27 or 36, which
gives 2b+c2b+c equal to 2, 11 or 20,
respectively.

2b+c=22b+c=22b+c=112b+c=112b+c=202b+c=20
b=1,c=0b=1, c=0b=5,c=1b=5, c=1b=9,c=2b=9, c=2
b=0,c=2b=0, c=2b=4,c=3b=4, c=3b=8,c=4b=8, c=4
b=3,c=5b=3, c=5b=7,c=6b=7, c=6
b=2,c=7b=2, c=7b=6,c=8b=6, c=8
b=1,c=9b=1, c=9

Thus when a=8a=8, there are 2+5+4=112+5+4=11 such palindromes.

Therefore, the number of palindromes that are greater than 10 000 and
less than 100 000 and that are multiples of 18 is 11+11+11+11=4411+11+11+11=44.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: CEMC, University of Waterloo, licensed CC-BY-NC-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.