OFFSET
102,1
LINKS
David A. Corneth, Table of n, a(n) for n = 102..10101
FORMULA
a(n) <= A004290(n).
a(n) = n if n is in A031955. - Bernard Schott, May 17 2020
EXAMPLE
a(102) = 1122 as 1122 = 11*102 is the least multiple of 102 that has at most 2 distinct digits.
MATHEMATICA
a[n_] := Module[{k = n}, While[Length @ Select[DigitCount[k, 10], # > 0 &] > 2, k += n]; k]; Array[a, 51, 102] (* Amiram Eldar, May 21 2020 *)
PROG
(PARI) a(n) = for(i = 1, oo, if(#Set(digits(i*n))<3, return(i*n)))
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
David A. Corneth, May 17 2020
STATUS
approved