OFFSET
1,1
COMMENTS
Smallest number of the form m*prime(n) such that every decimal digit d in prime(n) (including repetitions) is also a digit in m*prime(n). For every n, m is in {3,4,5,6,7,8,9,10}. The graph displays 8 parallel straight lines, each corresponding to a different value of m (the uppermost being m = 10).
For all n, 10*prime(n) (m = 10) contains all the digits of prime(n), but there are some cases where for m < 10 every digit of prime(n) is found in m*prime(n). The first of these is when n = 1, m = 6; see Example.
This sequence is not the same as A087217(prime(n)) since here the order of digits in m*prime(n)is unimportant; see Example.
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..10000
Michael De Vlieger, Log log scatterplot of a(n), n = 1..10^5.
EXAMPLE
MATHEMATICA
Reap[Do[p = Prime[n]; d = DigitCount[p]; k = 2; While[! AllTrue[DigitCount[#] - d, # >= 0 &] &[p*k], k++]; Sow[k *= p], {n, 120}]][[-1, 1]] (* Michael De Vlieger, Feb 20 2025 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
David James Sycamore, Feb 07 2025
STATUS
approved