OFFSET
1,1
COMMENTS
The n-th pentagonal number is (3*n^2 - n)/2 = n*(3*n - 1)/2.
LINKS
K. D. Bajpai, Table of n, a(n) for n = 1..1786
EXAMPLE
852 is in the sequence because 852 = 24*(3*24-1)/2 = (839 + 853 + 857 + 859)/4, the arithmetic mean of four consecutive primes.
172212 is in the sequence because 172212 = 339*(3*339-1)/2 = (172199 +172213+ 172217 + 172219)/4, the arithmetic mean of four consecutive primes.
MAPLE
KD := proc() local a, b, d, e, f, g; a:= n*(3*n-1)/2; b:=prevprime(a); d:=nextprime(a); e:=nextprime(d); f:=nextprime(e); g:=(b+d+e+f)/4; if a=g then RETURN (a); fi; end: seq(KD(), n=2..5000);
CROSSREFS
KEYWORD
nonn,less
AUTHOR
K. D. Bajpai, Dec 27 2013
STATUS
approved