Kolakoski sequence: Difference between revisions
Content added Content deleted
m (→{{header|Python}}: Whoops) |
m (fmt.) |
||
Line 20: | Line 20: | ||
# We start the sequence <code>s</code> with the first item from the cycle <code>c</code>:<br> <code>1</code> |
# 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 |
# An index, <code>k</code>, into the, (expanding), sequence will step, or index through each item of the sequence <code>s</code> from the first, at its own rate.<br> |
||
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>. |
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>. |
||