OFFSET
2,1
COMMENTS
All divisors of n^4-n^2+1 are congruent to 1 modulo 12.
a(n) = 13 if and only if n is congruent to 2, -2, 6, or -6 modulo 13.
REFERENCES
K. Ireland and M. Rosen, A Classical Introduction to Modern Number Theory, Springer-Verlag, NY, Second Edition (1990), p. 63.
LINKS
Nick Hobson, Table of n, a(n) for n = 2..1000
EXAMPLE
The prime divisors of 6^4-6^2+1=1261 are 13 and 97, so a(5) = 13.
MATHEMATICA
Table[FactorInteger[n^4-n^2+1][[1, 1]], {n, 2, 50}] (* Harvey P. Dale, Feb 27 2012 *)
PROG
(PARI) vector(49, n, if(n<2, "-", factor(n^4-n^2+1)[1, 1]))
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Nick Hobson, Nov 26 2006
STATUS
approved