Take a test Sign in 中文
← Exercise 796 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 796
Let $p$ and $q$ be positive integers such that $\dfrac58<\dfrac pq<\dfrac23$ and $q$ is as small as possible. What is $q-p$?
← Back to Problem 796
Solution
  1. If $\frac58<\frac pq<\frac23$, then $\frac pq-\frac58=\frac{8p-5q}{8q}\ge\frac1{8q}$ and $\frac23-\frac pq=\frac{2q-3p}{3q}\ge\frac1{3q}$. Adding, $\frac23-\frac58=\frac1{24}\ge\frac{11}{24q}$, so $q\ge11$.
  2. For $q=11$: $\frac{55}8<p<\frac{22}3$, i.e.\ $6.875<p<7.33$, so $p=7$.
  3. So $q-p=\boxed{4}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year