login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A111123 Number of 2's in n-th "Kolakoski" string defined in A054349. 0

%I

%S 1,2,2,3,5,8,11,16,25,38,57,85,127,192,289,430,644,966,1450,2173,3263,

%T 4899,7341,11022,16526,24802,37201,55808,83702,125541,188301,282444,

%U 423683,635569,953356,1429969,2144990,3217454

%N Number of 2's in n-th "Kolakoski" string defined in A054349.

%F a(1)+a(2)+...+a(n)=A042942(n+1)-1

%F First differences of the sequence A001083. [From _Benoit Cloitre_, Nov 07 2010]

%t l = { (*terms in A042942*) }; For[i = 2, i <= Length[l], i++, Print[l[[i]] - l[[i - 1]]]]

%K more,nonn

%O 1,2

%A _Benoit Cloitre_, Oct 16 2005

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified February 24 14:56 EST 2020. Contains 332209 sequences. (Running on oeis4.)