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..3747
EXAMPLE
9087 is in the sequence because 9087 = 78 *(3*78 - 1)/2 = (9067 + 9091 + 9103)/3, the arithmetic mean of three consecutive primes.
29751 is in the sequence because 29751 = 141*(3*141 - 1)/2 = (29741 + 29753 + 29759)/3, the arithmetic mean of three consecutive primes.
MAPLE
KD := proc() local a, b, d, e, g; a:= n*(3*n-1)/2; b:=prevprime(a); d:=nextprime(a); e:=nextprime(d); g:=(b+d+e)/3; if a=g then RETURN (a); fi; end: seq(KD(), n=2..10000);
CROSSREFS
KEYWORD
nonn
AUTHOR
K. D. Bajpai, Dec 27 2013
STATUS
approved