OFFSET
3,3
COMMENTS
a(n) is never 0.
EXAMPLE
a(3)=3^2-2*5=-1, a(4)=4^2-3*5=1.
MATHEMATICA
Table[n^2-NextPrime[n]NextPrime[n, -1], {n, 3, 80}] (* Harvey P. Dale, Aug 22 2011 *)
PROG
(PARI) a(n) = n^2 - precprime(n-1)*nextprime(n+1); \\ Michel Marcus, Mar 22 2020
CROSSREFS
KEYWORD
easy,sign
AUTHOR
Henry Bottomley, Jun 15 2000
EXTENSIONS
More terms from Harvey P. Dale, Aug 22 2011
STATUS
approved