Stern-Brocot sequence: Difference between revisions
m
→{{header|Raku}}: typo
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: tidy) |
SqrtNegInf (talk | contribs) m (→{{header|Raku}}: typo) |
||
Line 4,237:
for flat 1..10, 100 -> $ix {
say "First occurrence of {$ix.fmt('%3d')} is at index: {(1+@Stern-Brocot.first($ix, :k)).fmt('%4d')}";
}
|