OFFSET
1,1
COMMENTS
The next prime in the sequence, after 2, 5 and 29, has at least 888 digits (n >= 349).
EXAMPLE
a(1)=2 because ((1+1)^1-(1-1)^1)/2+1=2,
a(2)=5 because ((2+1)^2-(2-1)^2)/2+1=5,
a(3)=29 because ((3+1)^3-(3-1)^3)/2+1=29.
MATHEMATICA
Table[((n+1)^n-(n-1)^n)/2+1, {n, 20}] (* Harvey P. Dale, Oct 27 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Juri-Stepan Gerasimov, Jun 14 2011
STATUS
approved