OFFSET
0,1
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 0..645
FORMULA
EXAMPLE
83 is prime, A007954(83) = 8*3 = 24 that is the 18th 7-smooth number, and as no prime < 83 has a product of digits = 24, a(18) = 83.
MATHEMATICA
pod[n_] := Times @@ IntegerDigits[n]; seq[max_] := Module[{sm7 = Join[{0}, Select[Range[max], Max[FactorInteger[#][[;; , 1]]] <= 7 &]], m, s, n, c, i, ind}, m = Length[sm7]; s = Table[0, {m}]; n = 1; c = 0; While[c < m, n = NextPrime[n]; i = pod[n]; If[MemberQ[sm7, i], ind = Position[sm7, i][[1, 1]]]; If[s[[ind]] == 0, c++; s[[ind]] = n]]; s]; seq[150] (* Amiram Eldar, Feb 16 2021 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Bernard Schott, Feb 16 2021
EXTENSIONS
More terms from Amiram Eldar, Feb 16 2021
STATUS
approved