A088570 Sum of terms in n-th block of Kolakoski sequence.
1, 4, 2, 2, 1, 4, 1, 4, 2, 2, 2, 4, 1, 2, 2, 2, 1, 4, 2, 2, 2, 2, 1, 4, 1, 4, 2, 2, 1, 4, 1, 2, 2, 2, 2, 4, 1, 4, 2, 2, 1, 4, 1, 4, 2, 2, 2, 2, 1, 4, 1, 2, 2, 4, 1, 4, 2, 2, 1, 4, 1, 4, 2, 2, 2, 4, 1, 2, 2, 2, 1, 4, 1, 4, 2, 2, 2, 2, 1, 4, 2, 2, 2, 4, 1, 2, 2, 2, 2, 4, 1, 4, 2, 2, 1, 4, 1, 2, 2, 4, 1, 4, 1, 2, 2
Offset: 1
Keywords
Crossrefs
Cf. A000002.
Formula
a(n) = (3+(-1)^n)/2*A000002(n).