The DO Loop

Statistical programming in SAS with an emphasis on SAS/IML programs
Analytics
Rick Wicklin 1
The Farey sequence

Here is an interesting math question: How many reduced fractions in the interval (0, 1) have a denominator less than 100? The question is difficult is because of the word "reduced." If we only care about the total number of fractions in (0,1) whose denominator is less than 100, we

1 45 46 47 48 49 168