login
A089086
Greatest common divisor of n^2-5 and n^2+5.
1
5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5, 2, 1, 2, 1, 10, 1, 2, 1, 2, 5
OFFSET
0,1
LINKS
MATHEMATICA
GCD@@#&/@Table[n^2+{5, -5}, {n, 0, 110}] (* Harvey P. Dale, Jul 17 2016 *)
PROG
(PARI) g(n) = for(x=0, n, print1(gcd(x^2-5, x^2+5)", "))
CROSSREFS
Cf. A109013.
Sequence in context: A132690 A326922 A343678 * A238716 A280695 A243258
KEYWORD
easy,nonn
AUTHOR
Cino Hilliard, Dec 05 2003
STATUS
approved