login
A117840
Smaller of two consecutive prime numbers with the same multiplicative digital root.
1
79, 101, 103, 107, 151, 163, 179, 197, 211, 229, 251, 271, 281, 293, 349, 379, 401, 419, 443, 491, 503, 509, 521, 523, 541, 563, 577, 599, 601, 613, 631, 653, 691, 701, 769, 821, 853, 857, 881, 997, 1009, 1013, 1019, 1021, 1031, 1033, 1039, 1049, 1051, 1061
OFFSET
1,1
LINKS
EXAMPLE
79 and 83 are two consecutive primes with the same multiplicative digital root, namely 8.
MATHEMATICA
pod[n_] := Times @@ IntegerDigits[n]; multDigRoot[n_] := NestWhile[pod, n, # > 9 &]; Select[Partition[Select[Range[1000], PrimeQ], 2, 1], Equal @@ multDigRoot /@ # &][[;; , 1]] (* Amiram Eldar, Feb 06 2021 *)
Prime[#]&/@(SequencePosition[NestWhile[Times@@IntegerDigits[#]&, #, #>9&]&/@ Prime[ Range[200]], {x_, x_}][[;; , 1]]) (* Harvey P. Dale, Jan 16 2024 *)
CROSSREFS
Sequence in context: A106757 A285228 A087537 * A296012 A193142 A033250
KEYWORD
base,nonn
AUTHOR
Luc Stevens (lms022(AT)yahoo.com), Apr 30 2006
STATUS
approved