Farey sequence: Difference between revisions

m
→‎Recurrence: add libheader
(Added Fōrmulæ)
m (→‎Recurrence: add libheader)
Line 1,356:
 
=== Recurrence ===
 
This uses the recurrence from Concrete Mathematics exercise 4.61 to create them quickly (this is also on the Wikipedia page). It also uses the totient sum to quickly get the counts.
{{libheader|ntheory}}
<lang perl>use warnings;
use strict;
2,392

edits