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.

A135133 a(n) = floor(S2(n)/3) mod 2, where S2(n) denotes the binary weight of n.

Original entry on oeis.org

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

Views

Author

Ctibor O. Zizka, Feb 12 2008

Keywords

Comments

A generalized Thue-Morse sequence.

Crossrefs

Programs

  • Maple
    S2 := proc(n) return add(d, d=convert(n,base,2)): end: A135133 := proc(n) return floor(S2(n)/3) mod 2: end: seq(A135133(n),n=0..104); # Nathaniel Johnston, May 06 2011
  • Mathematica
    Table[Mod[Floor[(Plus @@ IntegerDigits[n, 2])/3], 2], {n, 0, 50}] (* G. C. Greubel, Sep 28 2016 *)