login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

A157196
a(n) = (1/2)*(sum of elements of n-th run) using 1 and 2 starting with 1,1.
6
1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 1
OFFSET
1,3
COMMENTS
We conjecture that the density of 1's in the sequence approaches 2/3 as n -> infinity. This conjecture is proved in the paper of Shallit.
EXAMPLE
Write the sums of elements in each run, you obtain: 2,2,4,2,2,2,2,4,2,2,4,2,2,4,4,... dividing by 2 you get: 1,1,2,1,1,1,1,2,1,1,2,1,1,2,2,... the sequence itself.
MAPLE
mx:= 1000: l:= [1$2]: a:= n-> l[n]:
for h from 2 while nops(l)<mx do
t:= 2-irem(h, 2); l:= [l[], t$(l[h]*2/t)]
od:
seq (a(n), n=1..120); # Alois P. Heinz, May 31 2012
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 24 2009
EXTENSIONS
More terms from Alvin Hoover Belt, May 31 2012
STATUS
approved

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy