|
|
A298952
|
|
First put a(n)=0 for all n, then start with a(0) = 1 and add at step n >= 0 the term 1 at position 2*n + a(n).
|
|
4
|
|
|
1, 1, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 1, 1, 0, 1, 0, 0, 1, 0, 1, 1, 0, 0
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0
|
|
COMMENTS
|
Sum_{i = 0..n} a(i)/n tends to 1/2 as n tends to infinity. [corrected by Rémy Sigrist, Jan 31 2018]
The above limit statement follows from a much stronger property.
Let mu be the 'exchanged' Thue-Morse morphism given by
mu(0) = 10, mu(1) = 01.
CLAIM: a(234...) = mu(a(123...)).
Here a(234...) denotes the word associated to the sequence a(2), a(3), a(4),....
Proof: If a(n)=1 then a(2n+1)=1, and it also follows that a(2n)=0. If a(n)=0 then a(2n)=1, and it also follows that a(2n+1)=0.
This can also be expressed as mu(a(n))=a(2n)a(2n+1).
(End)
|
|
LINKS
|
|
|
EXAMPLE
|
Set a(n) = 0.
n = 0, a(0) = 1. Add term 1 at position 2*0+1 = 1. We have {1,1,0,0,0,0,0,0,0,0,...}
n = 1, a(1) = 1. Add term 1 at position 2*1+1 = 3. We have {1,1,0,1,0,0,0,0,0,0,...}
n = 2, a(2) = 0. Add term 1 at position 2*2+0 = 4. We have {1,1,0,1,1,0,0,0,0,0,...}
n = 3, a(3) = 1. Add term 1 at position 2*3+1 = 7. We have {1,1,0,1,1,0,0,1,0,0,...}
and so on.
|
|
PROG
|
(PARI) a(n) = if(n==0, 1, (logint(n, 2) - hammingweight(n)) % 2); \\ Kevin Ryde, Mar 11 2021
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|