A111123 Number of 2's in n-th "Kolakoski" string defined in A054349.
1, 2, 2, 3, 5, 8, 11, 16, 25, 38, 57, 85, 127, 192, 289, 430, 644, 966, 1450, 2173, 3263, 4899, 7341, 11022, 16526, 24802, 37201, 55808, 83702, 125541, 188301, 282444, 423683, 635569, 953356, 1429969, 2144990, 3217454, 4826176, 7239129, 10858479, 16287972, 24431890
Offset: 0
Keywords
Links
- Rakesh Khanna A, Table of n, a(n) for n = 0..59
Programs
-
Mathematica
l = { (*terms in A042942*) }; For[i = 2, i <= Length[l], i++, Print[l[[i]] - l[[i - 1]]]]
Formula
a(0) + a(1) + ... + a(n) = A042942(n+2) - 1.
Extensions
More terms from and offset changed to 0 by Jinyuan Wang, Apr 03 2020
Comments