Fusc sequence: Difference between revisions
Content added Content deleted
Line 960: | Line 960: | ||
writeln; |
writeln; |
||
format!" |
format!"\nFusc numbers with more digits than any previous (1 to %d digits):"(MAX_N_DIGITS).writeln; |
||
for(auto n=0, ndigits=0; ndigits<MAX_N_DIGITS; n++) |
for(auto n=0, ndigits=0; ndigits<MAX_N_DIGITS; n++) |
||
if( n.fusc.to!string.length > ndigits ){ |
if( n.fusc.to!string.length > ndigits ){ |
||
Line 969: | Line 969: | ||
{{Out}} |
{{Out}} |
||
<pre>First 61 fusc numbers: 0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9 7 12 5 13 8 11 3 10 7 11 4 |
<pre>First 61 fusc numbers: 0 1 1 2 1 3 2 3 1 4 3 5 2 5 3 4 1 5 4 7 3 8 5 7 2 7 5 8 3 7 4 5 1 6 5 9 4 11 7 10 3 11 8 13 5 12 7 9 2 9 7 12 5 13 8 11 3 10 7 11 4 |
||
First fusc number for each number of digits (1 to 5 digits): |
|||
Fusc numbers with more digits than any previous (1 to 5 digits): |
|||
fusc(0)=0 |
fusc(0)=0 |
||
fusc(37)=11 |
fusc(37)=11 |