|
|
A337240
|
|
a(n) is the smallest multiple of n whose decimal representation contains at least two digits which are the same.
|
|
1
|
|
|
11, 22, 33, 44, 55, 66, 77, 88, 99, 100, 11, 144, 117, 112, 225, 112, 119, 144, 114, 100, 252, 22, 115, 144, 100, 338, 999, 112, 116, 300, 155, 224, 33, 272, 455, 144, 111, 114, 117, 200, 533, 252, 344, 44, 225, 322, 141, 144, 343, 100, 255, 676, 212, 1080, 55
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
|
|
EXAMPLE
|
a(13) = 117 because 117 is the smallest multiple of 13 with equal digits.
a(16) = 112 because 112 is the smallest multiple of 16 with equal digits.
a(25) = 100 because 100 is the smallest multiple of 25 with equal digits.
|
|
MATHEMATICA
|
Array[Block[{k = 1}, While[NoneTrue[DigitCount[k #], # > 1 &], k++]; k #] &, 55] (* Michael De Vlieger, Aug 21 2020 *)
|
|
PROG
|
(PARI) a(n) = {my(k=1, d=digits(n)); while(#Set(d) == #d, k++; d=digits(k*n)); k*n; } \\ Michel Marcus, Aug 22 2020
|
|
CROSSREFS
|
Cf. A045538 (least k such that k*n contains two equal consecutive digits).
Cf. A337241 (least k such that k*n contains two equal digits).
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|