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.

A354384 Difference sequence of A356133.

Original entry on oeis.org

2, 3, 4, 2, 4, 3, 2, 3, 4, 3, 2, 4, 2, 3, 4, 2, 4, 3, 2, 4, 2, 3, 4, 3, 2, 3, 4, 2, 4, 3, 2, 3, 4, 3, 2, 4, 2, 3, 4, 3, 2, 3, 4, 2, 4, 3, 2, 4, 2, 3, 4, 2, 4, 3, 2, 3, 4, 3, 2, 4, 2, 3, 4, 2, 4, 3, 2, 4, 2, 3, 4, 3, 2, 3, 4, 2, 4, 3, 2, 4, 2, 3, 4, 2, 4, 3
Offset: 1

Views

Author

Clark Kimberling, Aug 04 2022

Keywords

Crossrefs

Cf. A026430, A356133, A091855 (positions of 2), A036554 (positions of 3), A091855 (positions of 4).

Programs

  • Mathematica
    u = Accumulate[1 + ThueMorse /@ Range[0, 200]]  (* A026430 *)
    v = Complement[Range[Max[u]], u];  (* A356133 *)
    Differences[v] (* A354384 *)

Formula

a(n) = A007413(n) + 1.
a(n) = A036580(n) + 2.