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.
This sequence is the answer to the 6th problem proposed the 2nd day by Iran during the 45th International Mathematical Olympiad, in Athens (Greece), 2004 (see links). - Bernard Schott, Apr 12 2021
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10001 (adapted to offset by Michel Marcus)
45th International Mathematical Olympiad (45th IMO), Problem #6 and Solution, Mathematics Magazine, 2005, Vol. 78, No. 3, pp. 247, 250-251.
The IMO Compendium, Problem 6, 45th IMO 2004.
FORMULA
Positive n, not congruent to 0 mod 20.
a(n + 19) = a(n) + 20. - David A. Corneth, Apr 13 2021
EXAMPLE
11 is an alternator and in the sequence because it has a multiple which is alternating. The least of these multiples is 121.
MATHEMATICA
Select[Range[75], Mod[#, 20] != 0 &] (* Michael De Vlieger, Apr 13 2021 *)
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Walter Nissen, Jul 18 2005
EXTENSIONS
Offset 1 from Michel Marcus, May 12 2021
STATUS
approved