Anonymous user
Kolakoski sequence: Difference between revisions
m
fmt.
m (→{{header|Python}}: Whoops) |
m (fmt.) |
||
Line 20:
# We start the sequence <code>s</code> with the first item from the cycle <code>c</code>:<br> <code>1</code>
# An index, <code>k</code>, into the, (expanding), sequence will step, or index through each item of the sequence
We will arrange that the <code>k</code>'th item of <code>s</code> states how many ''times'' the ''last'' item of <code>s</code>should appear at the end of <code>s</code>.
|