OFFSET
1,5
COMMENTS
Record values for primes up to 10000:
n p(n) a(n)
1 2 1
5 11 3
9 23 4
20 71 12
39 167 25
132 743 58
236 1487 62
417 2879 71
675 5039 125
867 6719 168
LINKS
Franklin T. Adams-Watters, Table of n, a(n) for n=1..1229 (primes through 10000)
FORMULA
a(n) = 1 + # { k < prime(n) | A039654(k) = prime(n) } . - M. F. Hasler, Sep 25 2017
PROG
(PARI) a(n)=sum(k=2, n=prime(n), A039654(k)==n) \\ M. F. Hasler, Sep 25 2017
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, May 06 2010
STATUS
approved