The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A157129 An analog of the Kolakoski sequence A000002, only now a(n) = (length of n-th run divided by 2) using 1 and 2 and starting with 1,1. 2
1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 2, 2, 1, 1, 2, 2, 1, 1, 1, 1, 2, 2, 2, 2, 1, 1, 1, 1, 2 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
FORMULA
As for the Kolakoski sequence we suspect Sum_{k=1..n} a(k) = (3/2)*n + o(n).
a(n) = A071928(n)/2. - Jon Maiga, Jun 04 2021
a(n) = gcd(A284796(ceiling(n/2)), 2) (conjectured). - Jon Maiga, Jun 11 2021
EXAMPLE
The third run is 1,1,1,1, which is of length 4, thus a(3) = 4/2 = 2.
PROG
(PARI) w=[1, 1]; for(n=2, 1000, for(i=1, 2*w[n], w=concat(w, 1+(n+1)%2))); w \\ Corrected by Kevin Ryde and Jon Maiga, Jun 11 2021
CROSSREFS
Sequence in context: A308884 A101598 A342461 * A101615 A246359 A328114
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Feb 23 2009
STATUS
approved

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 June 2 08:23 EDT 2024. Contains 373033 sequences. (Running on oeis4.)