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.

A104106 a(1) = 1; thereafter, if A(k) = sequence of first 2^k -1 terms, then A(k+1) = A(k),1,A(k) if a(k) = 0, and A(k+1) = A(k),0,A(k) if a(k) = 1.

Original entry on oeis.org

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

Views

Author

Leroy Quet, Mar 04 2005

Keywords

Crossrefs

Programs

  • Maple
    a:= Vector(2^9-1):
    a[1]:= 1;
    for k from 1 to 8 do
      a[2^k]:= 1-a[k];
      a[2^k+1..2^(k+1)-1]:= a[1..2^k-1]
    od:
    convert(a,list); # Robert Israel, May 07 2018
  • Mathematica
    f[l_]:=Join[l,1-{l[[Log[2,Length[l]+1]]]},l];Nest[f,{1},7] (* Ray Chandler, Apr 05 2009 *)

Formula

a(n) = A089242(n) mod 2. - Christian Krause, Mar 19 2021

Extensions

Edited and extended by Ray Chandler, Apr 05 2009