cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A089086 Greatest common divisor of n^2-5 and n^2+5.

Original entry on oeis.org

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

Views

Author

Cino Hilliard, Dec 05 2003

Keywords

Crossrefs

Cf. A109013.

Programs

  • Mathematica
    GCD@@#&/@Table[n^2+{5,-5},{n,0,110}] (* Harvey P. Dale, Jul 17 2016 *)
  • PARI
    g(n) = for(x=0,n,print1(gcd(x^2-5,x^2+5)","))