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.

A105349 Characteristic sequence for the Pell numbers.

Original entry on oeis.org

1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
Offset: 0

Views

Author

Paul Barry, Apr 01 2005

Keywords

Crossrefs

Cf. A000129.

Programs

  • Mathematica
    a[n_] := If[Or @@ (IntegerQ[Sqrt[#]]& /@ (2*n^2 + {-1, 1})), 1, 0]; Array[a, 100, 0] (* Amiram Eldar, Jun 20 2024 *)

Formula

G.f.: Sum_{k>=0} x^A000129(k).