A074272 Partial alternating sums of the Kolakoski sequence A000002.
1, -1, 1, 0, 1, -1, 0, -2, 0, -1, 1, -1, 0, -1, 1, 0, 1, -1, 1, 0, 2, 1, 2, 0, 1, -1, 1, 0, 1, -1, 0, -1, 1, 0, 2, 0, 1, -1, 1, 0, 1, -1, 0, -2, 0, -1, 1, 0, 1, -1, 0, -1, 1, -1, 0, -2, 0, -1, 0, -2, -1, -3, -1, -2, 0, -2, -1, -2, 0, -1, 0, -2, -1, -3, -1, -2, 0
Offset: 1
Examples
Kolakoski: 1,2,2,1,1,2,1,2,2,1,2,2,1,1,... We look at 1-2+2-1+1-2+1-2+2 and this gives 1,-1,1,0,1,-1,0,-2,0
Links
- Nathaniel Johnston, Table of n, a(n) for n = 1..10000
Crossrefs
Cf. A054353.