Take a test Sign in 中文
← Exercise 800 →
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 800
Let $f(x)=\sum_{k\in\{6,8,9,10\}}\left(\lfloor kx\rfloor-k\lfloor x\rfloor\right)$. How many distinct values does $f(x)$ assume for $x\ge0$?
← Back to Problem 800
Solution
  1. Writing $x=\lfloor x\rfloor+\{x\}$ gives $\lfloor kx\rfloor-k\lfloor x\rfloor=\lfloor k\{x\}\rfloor$. So $f(x)=\sum\lfloor k\{x\}\rfloor$ depends only on $t=\{x\}\in[0,1)$, never decreases as $t$ increases, and jumps exactly at the fractions $\frac jk$ with $k\in\{6,8,9,10\}$, $0<j<k$.
  2. In lowest terms such a fraction is $\frac ab$ with $b>1$ dividing one of $6,8,9,10$, so $b\in\{2,3,4,5,6,8,9,10\}$; conversely every such $\frac ab$ occurs.
  3. The number of these fractions is $\varphi(2)+\varphi(3)+\varphi(4)+\varphi(5)+\varphi(6)+\varphi(8)+\varphi(9)+\varphi(10)=1+2+2+4+2+4+6+4=25$ (Theorem 102).
  4. So $f$ takes $25+1=\boxed{26}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year