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.

A022955 Unique increasing sequence satisfying a(n) = a(n-3) + c(n-3); where c( ) is complement of a( ).

Original entry on oeis.org

1, 2, 3, 5, 8, 10, 14, 19, 22, 27, 34, 38, 44, 52, 58, 65, 75, 82, 90, 101, 110, 119, 131, 141, 151, 164, 176, 187, 201, 215, 227, 242, 257, 270, 287, 303, 317, 335, 352, 367, 386, 405, 421, 441, 461, 478, 500, 521, 539, 562, 584, 603, 628, 651
Offset: 1

Views

Author

Keywords

Comments

Here "complement" refers to the numbers not in the sequence.

Crossrefs

Cf. A005228 and references therein.

Programs

  • Mathematica
    Fold[Append[#1, #1[[#2]] + Complement[Range[Max@#1 + 1], #1][[#2]]] &, {1, 2, 3}, Range[50]] (* Ivan Neretin, Apr 05 2016 *)