OFFSET
1,1
COMMENTS
From Ryan Hitchman, Sep 15 2017: (Start)
a(172) = 1023847569, prime(172) = 1021 is the first entry with one multiple.
a(1884) = 145953, prime(1884) = 16217 is last with more than one multiple.
a(10545) = 0, prime(10545) = 111119 is the first zero. (End)
LINKS
Ryan Hitchman, Table of n, a(n) for n = 1..10544
Claudio Meller Blog, Multiples with all the digits, June 13 2016.
EXAMPLE
For n = 7, a(7) = 918 because prime(7) = 17, sequence 34, 85, 102, 697, sum 918.
MATHEMATICA
(m = Select[#*Range[10000], Max[DigitCount[#]] == 1 &];
Total[m*LinearProgramming[m, Thread[DigitCount /@ m],
ConstantArray[{1, 0}, 10], 0, Integers]]) & /@ Prime[Range[40]] (* Ryan Hitchman, Sep 15 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Jun 21 2016
EXTENSIONS
Terms a(9) and beyond, zero case from Ryan Hitchman, Sep 15 2017
STATUS
approved