List of fractions

Martha is writing down all (reduced) fractions with denominators up to 100, i.e. all the fractions n d \frac nd such that 1 n < d 100 1 \leq n < d \leq 100 and gcd ( d , n ) = 1 \text{gcd}(d,n) = 1 . Then she sorts the fractions from smallest to greatest. Martha claims that, in this list, the two fractions 5 7 , 63 88 \frac{5}{7}, \ \ \frac{63}{88} sit directly next to each other in this order.

Is this true?


Example: The sorted list of all fractions with denominators up to 7 would be 1 7 , 1 6 , 1 5 , 1 4 , 2 7 , 1 3 , 2 5 , 3 7 , 1 2 , 4 7 , 3 5 , 2 3 , 5 7 , 3 4 , 4 5 , 5 6 , 6 7 . \frac 1 7, \frac 1 6, \frac 1 5, \frac 1 4, \frac 2 7, \frac 1 3, \frac 2 5, \frac 3 7, \frac 1 2, \frac 4 7, \frac 3 5, \frac 2 3, \frac 5 7, \frac 3 4, \frac 4 5, \frac 5 6, \frac 6 7.

Yes No

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Arjen Vreugdenhil
Mar 18, 2017

The answer is no. The fraction 5 + 63 7 + 88 = 68 95 \frac{5+63}{7+88} = \frac{68}{95} lies between the two given values.


In general, for positive a / b < c / d a/b < c/d , we have a b < a + c b + d < c d . \frac{a}{b} < \frac{a + c}{b + d} < \frac{c}{d}. Proof: cross-multiply. a b < c d ; \frac a b < \frac c d; a d < b c ; ad < bc; a b + a d < a b + b c ; ab + ad < ab + bc; a ( b + d ) < ( a + c ) b ; a(b + d) < (a + c)b; a b < a + c b + d , \frac a b < \frac{a + c}{b+d}, and similar for the other inequality (add c d cd to both sides).


In a list of all fractions with denominator d D d \leq D , two successive fractions a / b , c / d a/b, c/d will always have the property that b c a d = 1 bc - ad = 1 . It is easy to check that this is the case here: 5 × 88 63 × 7 = 1 5 \times 88 - 63 \times 7 = 1 . If this were not the case, we could immediately have answered "No".

In fact, from 5 × 88 63 × 7 = 1 5 \times 88 - 63\times 7 = 1 we may even conclude that there is no intervening fraction with a denominator less than 88. However, as shown above, there is still room for a denominator greater than that...

Do you know of a simple explanation why we will have the property that b c a d = 1 bc-ad = 1 ?

(I swapped the order because you had a/b < c/d in the first line)

Calvin Lin Staff - 4 years, 2 months ago

Log in to reply

By induction:

Let P D P_D be the statement for a specific maximum denominator value D D . If we include the values 0 / 1 0/1 and 1 / 1 1/1 at the beginning and end of the fraction list, statement P 1 P_1 is obviously true.

Now suppose we increase D D to D + 1 D+1 . A new fraction will be inserted between two neighbors a / b , c / d a/b, c/d only if b + d = D + 1 b + d = D+1 , and this new fraction will have the form p q = a + c b + d . \frac{p}{q} = \frac{a+c}{b+d}. Now p b a q = ( a + c ) b a ( b + d ) = c b a d = 1 , pb - aq = (a+c)b - a(b + d) = cb - ad = 1, and likewise c q p d = 1 cq - pd =1 , showing that the pairs involving the new fraction also have the desired property; thus P D P_D implies P D + 1 P_{D+1} , and the principle if induction allows us to conclude that P D P_D is true for any value of D D .


These are known properties of any Farey pair , which is precisely what this problem is about. See also this interesting document .

Arjen Vreugdenhil - 4 years, 2 months ago

In general, for positive a / b < c / d a/b < c/d , we have a b < a + c b + d < c d . \frac{a}{b} < \frac{a + c}{b + d} < \frac{c}{d}.

This is also known as the Mediant inequality.

Pi Han Goh - 4 years, 2 months ago

Log in to reply

Yes. In my solution I proved the first half of this inequality; the second half can proven analogously.

Arjen Vreugdenhil - 4 years, 2 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...