OFFSET
1,2
EXAMPLE
a(1)=1 because prime(1) > (6*0 + 1)^2;
a(2)=16 because prime(16) > (6*1+1)^2 > prime(15);
a(3)=40 because prime(40) > (6*2+1)^2 > prime(39).
MAPLE
A174321 := proc(n) numtheory[pi](nextprime((6*n+1)^2)) ; end proc: seq(A174321(n), n=0..80) ; # R. J. Mathar, Mar 29 2010
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Juri-Stepan Gerasimov, Mar 15 2010
EXTENSIONS
Definition corrected by Charles R Greathouse IV, Mar 20 2010
STATUS
approved