OFFSET
1,1
COMMENTS
The only prime of the form n^2 - 1 is 3. Remember that n^2 - 1 = (n - 1)(n + 1), so, for example, for n = 12, we have n^2 - 1 = 143 = 11 * 13. - Alonso del Arte, Feb 16 2025
LINKS
David A. Corneth, Table of n, a(n) for n = 1..10000 (First 1000 terms from G. C. Greubel)
FORMULA
{3} Union A002496. - R. J. Mathar, Aug 06 2009
EXAMPLE
6^2 + 1 = 37, which is prime, so 37 is in the sequence.
8^2 + 1 = 65 = 5 * 13, so 65 is not in the sequence.
MATHEMATICA
Union[{3}, Select[Range[100]^2 + 1, PrimeQ]] (* G. C. Greubel, Jul 28 2017 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Gaurav Kumar, Jul 31 2009
STATUS
approved