Counting Fractions in a Range
Consider the fraction, , where and are positive integers. If and , it is called a reduced proper fraction.
If we list the set of reduced proper fractions for in ascending order of size, we get:
It can be seen that there are fractions between and .
How many fractions lie between and in the sorted set of reduced proper fractions for ?
分数有范围计数
考虑形如的分数,其中和均为正整数。如果且其最大公约数为,则称该分数为最简真分数。
将所有的最简真分数构成的集合按大小升序排列:
可以看出在和之间有个分数。
将的最简真分数构成的集合排序后,在和之间有多少个分数?
Gitalking ...