Problem

Source: IMO 2004 Athens

Tags: induction, modular arithmetic, number theory, IMO, IMO 2004, IMO Shortlist, decimal representation



We call a positive integer alternating if every two consecutive digits in its decimal representation are of different parity. Find all positive integers n such that n has a multiple which is alternating.


Attachments: