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.

A175019 a(0)=a(1)=1; a(n) = a(n-a(n-2)) + 2.

Original entry on oeis.org

1, 1, 3, 5, 3, 3, 7, 5, 3, 5, 7, 9, 5, 5, 7, 9, 7, 5, 11, 9, 7, 7, 11, 9, 7, 9, 11, 13, 7, 9, 11, 13, 9, 9, 11, 13, 11, 9, 15, 13, 11, 9, 15, 13, 11, 11, 15, 13, 11, 13, 15, 17, 11, 13, 15, 17, 11, 13, 15, 17, 13, 13, 15, 17, 15, 13, 19, 17, 15, 13, 19, 17, 15, 13, 19, 17, 15, 15, 19, 17
Offset: 0

Views

Author

Keywords

Comments

Conjectures from Chai Wah Wu, Jun 12 2016: (Start)
All odd numbers appear in sequence.
2n+1 appears 2n+2 times.
a((n+3)^2-8) = 2n+1 is the last time 2n+1 appears.
For n > 0, a((n-1)^2+2) = 2n+1 is the first time 2n+1 appears. (End)

Crossrefs

Cf. A028884.

Programs

  • Mathematica
    a[0] = a[1] = 1; a[n_] := a[n] = a[n - a[n - 2]] + 2; Table[a[n], {n, 0, 200}]