OFFSET
1,2
COMMENTS
An alternating integer is a positive integer for which, in base-10, the parity of its digits alternates. E.g., 121 is alternating because its consecutive digits are odd-even-odd, 1 being odd and 2 even. Of course, 1234567890 is also alternating. An alternator is a positive integer which has a multiple which is alternating.
For n congruent to 0 mod 20, a(n) is shown as zero to indicate that n is not an alternator.
LINKS
45th International Mathematical Olympiad (45th IMO), Problem #6 and Solution, Mathematics Magazine, 2005, Vol. 78, No. 3, pp. 247, 250-251.
EXAMPLE
a(11) = 121 because 121 is the least multiple of 11 which is alternating.
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Walter Nissen, Jul 18 2005
STATUS
approved