Jump to content

Inventory sequence: Difference between revisions

m
Added phix output/image
m (Added phix output/image)
Line 282:
<span style="color: #008080;">end</span> <span style="color: #008080;">if</span>
<!--</syntaxhighlight>-->
{{out}}
Output similar to Python
<pre>
Inventory sequence, first 100 elements:
0 1 1 0 2 2 2 0 3 2 4 1 1 0 4 4 4 1 4 0
5 5 4 1 6 2 1 0 6 7 5 1 6 3 3 1 0 7 9 5
3 6 4 4 2 0 8 9 6 4 9 4 5 2 1 3 0 9 10 7
5 10 6 6 3 1 4 2 0 10 11 8 6 11 6 9 3 2 5 3
2 0 11 11 10 8 11 7 9 4 3 6 4 5 0 12 11 10 9 13
 
First element >= 1,000 is 1,001 at index 24,255
First element >= 2,000 is 2,009 at index 43,301
First element >= 3,000 is 3,001 at index 61,708
First element >= 4,000 is 4,003 at index 81,456
First element >= 5,000 is 5,021 at index 98,704
First element >= 6,000 is 6,009 at index 121,342
First element >= 7,000 is 7,035 at index 151,756
First element >= 8,000 is 8,036 at index 168,804
First element >= 9,000 is 9,014 at index 184,428
First element >= 10,000 is 10,007 at index 201,788
</pre>
[[File:Phix_inventory_sequence_graph.png|thumb|center]]
 
=={{header|Python}}==
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.