Anonymous user
Van Eck sequence: Difference between revisions
Fix, and change to less ambiguous letters.
(New draft task with python examples.) |
(Fix, and change to less ambiguous letters.) |
||
Line 2:
The sequence is generated by following this pseudo-code:
<pre>
Repeatedly apply:
If the last term is *new* to the sequence so far then:
Otherwise:
</pre>
;Example:
Using
:<code>0</code>
Using
:<code>0 0</code>
Using
:<code>0 0 1</code>
Using
:<code>0 0 1 0</code>
Using
:<code>0 0 1 0 2</code>
Using
:<code>0 0 1 0 2 0</code>
Using
:<code>0 0 1 0 2 0 2 2</code>
Using
:<code>0 0 1 0 2 0 2 2 1</code>
Using
:<code>0 0 1 0 2 0 2 2 1 6</code>
...
|