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.

A089145 Greatest common divisor of n^2-3 and n^2+3.

Original entry on oeis.org

3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1, 2, 3, 2, 1, 6, 1
Offset: 0

Views

Author

Cino Hilliard, Dec 05 2003

Keywords

Programs

  • PARI
    g(n) = for(x=0,n,print1(gcd(x^2-3,x^2+3)","))
    
  • PARI
    Vec((3 + 2*x + x^2 + 6*x^3 + x^4 + 2*x^5) / ((1 - x)*(1 + x)*(1 - x + x^2)*(1 + x + x^2)) + O(x^80)) \\ Colin Barker, Dec 11 2019

Formula

From Colin Barker, Dec 11 2019: (Start)
G.f.: (3 + 2*x + x^2 + 6*x^3 + x^4 + 2*x^5) / ((1 - x)*(1 + x)*(1 - x + x^2)*(1 + x + x^2)).
a(n) = a(n-6) for n>5.
(End)