MathLabs

Problem 6

We call a positive integer alternating if every two consecutive digits in its decimal representation are of different parity. Find all positive integers nn which have an alternating multiple.
Step 1 of 5: Rule out 20∣n20 \mid n
20∣n  ⟹  20∣kn  ⟹  last digit=0, tens digit even  ⟹  not alternating20\mid n \implies 20\mid kn \implies \text{last digit}=0,\ \text{tens digit even} \implies \text{not alternating}
Detailed analysis

If 20∣n20\mid n, then every multiple of nn is a multiple of 2020. A multiple of 1010 ends in 00 (which is even), and being divisible by 2020 means its last two digits form a two-digit multiple of 2020, namely 00,20,40,60,8000,20,40,60,80, in all of which the tens digit is also even. Thus the last two digits have the same parity, so no multiple of nn can be alternating.