login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A248392 "Look and say" sequence, but say everything mod 2; starting with 1. 3

%I #32 Oct 18 2014 23:23:13

%S 1,1,1,0,1,1,0,1,1,1,1,1,0,0,1,1,1,0,0,1,1,0,1,0,0,0,1,1,0,1,1,1,0,1,

%T 1,1,1,1,0,1,1,1,0,0,1,1,1,1,0,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,1,1,1,0,

%U 0,1,1,1,0,1,1,0,1,0,0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,0,0,1,1,1,1,1,0,0,1,0,0,0,1

%N "Look and say" sequence, but say everything mod 2; starting with 1.

%C In the "Look and Say" sequence A005150 you read the previous term from left to right. For each run of consecutive equal digits, you say the length of the run followed by the digit itself.

%C After 6666777 for example you would say 4 6's, 3 7's, and the next term would be 4637. But now we say both the length of the run and the digit itself mod 2, so 6666777 would be read as 0 0's, 1 1, and the next term would be 0011.

%C We start with 1, so the initial terms are 1, 11, 01, 1011, 111001, etc. (see the Example lines).

%C Since this process leads to "numbers" with leading zeros, we give the sequence of successive digits instead of the successive "numbers" (so 1; 1,1; 0,1; 1,0,1,1; ...).

%D Alex Kontorovich, Verbal communication to _N. J. A. Sloane_, Oct 16 2014, describing work that he and Sam Payne did around 1998.

%H Alex Kontorovich, <a href="http://math.rutgers.edu/~alexk/progs.html">Programs</a>

%H Alex Kontorovich, <a href="/A248392/a248392.jpg">Illustration of initial terms</a>

%e The initial "numbers" are:

%e 1

%e 11

%e 01

%e 1011

%e 111001

%e 110011

%e 010001

%e 10111011

%e 1110111001

%e 1110110011

%e 1110010001

%e 1100111011

%e 0100111001

%e 101100110011

%e 11100100010001

%e 11001110111011

%e 01001110111001

%e 1011001110110011

%e 111001001110010001

%e 110011001100111011

%e 010001000100111001

%e 10111011101100110011

%e 1110111011100100010001

%e 1110111011001110111011

%e 1110111001001110111001

%e 1110110011001110110011

%e 1110010001001110010001

%e 1100111011001100111011

%e 0100111001000100111001

%e 101100110011101100110011

%e 11100100010011100100010001

%e 11001110110011001110111011

%e ...

%e The illustration gives a longer list and shows the fractal-like structure more clearly.

%p # a[n] is the n-th "number" read from right to left.

%p a[1]:=[1]: a[2]:=[1,1]: a[3]:=[1,0]: a[4]:=[1,1,0,1]:

%p M:=32:

%p for n from 5 to M do

%p s:=a[n-1][1]; a[n]:=[]; r:=1;

%p for i from 2 to nops(a[n-1]) do

%p t:=a[n-1][i];

%p if s=t then r:=r+1;

%p else a[n]:=[op(a[n]), s, r mod 2]; s:=t; r:=1;

%p fi;

%p od:

%p a[n]:=[op(a[n]), s, r mod 2];

%p od:

%p for n from 1 to M do m:=nops(a[n]); lprint([seq(a[n][m-i+1],i=1..m)]); od:

%Y Cf. A005150, A248393 (number of 1's in n-th "number"), A248396.

%K nonn,base

%O 1

%A _N. J. A. Sloane_, Oct 17 2014

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 31 17:27 EDT 2024. Contains 374808 sequences. (Running on oeis4.)