OFFSET
1,1
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 1..10000
PROG
(Haskell)
a245097 n = sum $ map a010051' [n + 1 .. a007535 n]
(PARI) f(n) = forcomposite(m=n+1, , if(Mod(n, m)^(m-1)==1, return(m))); \\ A007535
a(n) = primepi(f(n)) - primepi(n); \\ Michel Marcus, Jan 24 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Reinhard Zumkeller, Nov 12 2014
STATUS
approved