OFFSET
1,4
COMMENTS
LINKS
Zak Seidov and Charles R Greathouse IV, Table of n, a(n) for n = 1..10000 (first 1000 terms from Seidov)
EXAMPLE
a(5)=6 as A000040(5)=11 and 11 has 6 representations as arithmetic mean of three other (not equal to 11) primes:
11 = (2+2+29)/3=(3+7+23)/3 = (3+13+17)/3 = (5+5+23)/3 = (7+7+19)/3 = (7+13+13)/3.
PROG
(PARI) a(n, p=prime(n))=my(s=0); forprime(q=p+2, 3*p-4, my(t=3*p-q); forprime(r=max(t-q, 2), (3*p-q)\2, if(t!=p+r && isprime(t-r), s++))); s \\ Charles R Greathouse IV, Jun 04 2015
CROSSREFS
KEYWORD
nonn
AUTHOR
Zak Seidov, May 24 2015
STATUS
approved