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.

A020943 a(2n+1) = |a(2n) - a(2n-1)|, a(2n) = a(n) + a(n-1).

Original entry on oeis.org

0, 1, 1, 1, 0, 2, 2, 2, 0, 1, 1, 2, 1, 4, 3, 4, 1, 2, 1, 1, 0, 2, 2, 3, 1, 3, 2, 5, 3, 7, 4, 7, 3, 5, 2, 3, 1, 3, 2, 2, 0, 1, 1, 2, 1, 4, 3, 5, 2, 4, 2, 4, 2, 5, 3, 7, 4, 8, 4, 10, 6, 11, 5, 11, 6, 10, 4, 8, 4, 7, 3, 5, 2, 4, 2, 4, 2, 5, 3, 4, 1, 2, 1, 1, 0, 2, 2, 3, 1, 3, 2, 5, 3, 7, 4, 8, 4, 7, 3, 6, 3, 6, 3
Offset: 1

Views

Author

Keywords

Comments

Presumably, the positions n such that a(n)=0 are the terms of A097074. - Ivan Neretin, Jul 06 2015

Crossrefs

Programs

  • Mathematica
    a = {0, 1, 1}; Do[AppendTo[a, a[[n]] + a[[n - 1]]]; AppendTo[a, Abs[a[[-1]] - a[[-2]]]], {n, 2, 51}]; a (* Ivan Neretin, Jul 06 2015 *)

Extensions

More terms from Henry Bottomley, May 16 2001