OFFSET
2,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 2..1000
FORMULA
4 + 3 = 7; 9 + 7 = 16; 16 + 13 = 29; 25 + 23 = 48;
a(n) = n^2+A053001(n). - R. J. Mathar, Sep 19 2010
2n^2 - O(n^1.05) < a(n) < 2n^2. (Probably a much tighter lower bound is true.) - Charles R Greathouse IV, Jan 31 2023
MATHEMATICA
#+NextPrime[#, -1]&/@(Range[2, 50]^2) (* Harvey P. Dale, Apr 08 2023 *)
PROG
(PARI) a(n) = n^2 + precprime(n^2-1); \\ Michel Marcus, Aug 23 2013
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Ian Stewart, Sep 18 2010
STATUS
approved