OFFSET
1,2
COMMENTS
LINKS
Ivan Neretin, Table of n, a(n) for n = 1..10000
Eric Weisstein's World of Mathematics, Pierpont Prime.
FORMULA
Sum_{n>=1} 1/a(n) = Product_{p in A005109} p/(p-1) = 5.80109266072985445612... - Amiram Eldar, Sep 27 2020
EXAMPLE
15 = 3 * 5 is a term since both 3 and 5 are Pierpont primes.
MATHEMATICA
mx = 108; Select[Range@mx, Complement[FactorInteger[#][[All, 1]], Select[Prime@Range@mx, Max[FactorInteger[# - 1][[All, 1]]] < 5 &], {1}] == {} &] (* Ivan Neretin, Aug 13 2015 *)
PROG
(PARI) sm3(n)=n>>=valuation(n, 2); n==3^valuation(n, 3)
is(n)=my(f=factor(n)[, 1]); for(i=1, #f, if(!sm3(f[i]), return(0))); 1 \\ Charles R Greathouse IV, Feb 21 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Reinhard Zumkeller, Aug 29 2006
STATUS
approved