Yellowstone sequence: Difference between revisions
Content added Content deleted
mNo edit summary |
m (typos) |
||
Line 59: | Line 59: | ||
end |
end |
||
println(yellowstone(30)) |
println("The first 30 entries of the Yellowstone permutation:\n", yellowstone(30)) |
||
x = 1:100 |
x = 1:100 |
||
Line 66: | Line 66: | ||
</lang>{{out}} |
</lang>{{out}} |
||
<pre> |
<pre> |
||
The first 30 |
The first 30 entries of the Yellowstone permutation: |
||
[1, 2, 3, 4, 9, 8, 15, 14, 5, 6, 25, 12, 35, 16, 7, 10, 21, 20, 27, 22, 39, 11, 13, 33, 26, 45, 28, 51, 32, 17] |
[1, 2, 3, 4, 9, 8, 15, 14, 5, 6, 25, 12, 35, 16, 7, 10, 21, 20, 27, 22, 39, 11, 13, 33, 26, 45, 28, 51, 32, 17] |
||
</pre> |
</pre> |