OFFSET
1,1
COMMENTS
The maximum value of this sequence is a(n) = 72, first attained with n = 125. This can be proved via analysis mod 10^4 (Tomas Rokicki). a(n) = 72 for an infinite number of n including n = 125*10^k.
LINKS
David W. Wilson, Table of n, a(n) for n = 1..10000
EXAMPLE
The first 7 multiples of 17 (17,34,51,68,85,102,119) together include every digit, so a(17) = 7.
MATHEMATICA
multInclD[n_, b_:10] := Module[{curr = 1, notFound = True}, While[notFound, If[Union[Flatten[Table[IntegerDigits[n * k, b], {k, curr}]]] == Range[0, b - 1], notFound = False, curr++]]; Return[curr]]; Table[multInclD[n], {n, 70}] (* Alonso del Arte, Dec 15 2011 *)
PROG
(Python)
def a(n):
s = set()
return next(i for i in range(1, 73) if len(s:=s|set(str(i*n)))==10)
print([a(n) for n in range(1, 73)]) # Michael S. Branicky, Apr 14 2023
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David W. Wilson, Dec 15 2011
STATUS
approved