Take a test Sign in 中文
← Exercise 805 →
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 805
Let $h_n$ and $k_n$ be relatively prime positive integers with $1+\frac12+\cdots+\frac1n=\frac{h_n}{k_n}$, and let $L_n$ be the least common multiple of $1,2,\dots,n$. For how many integers $n$ with $1\le n\le30$ is $k_n<L_n$?
← Back to Problem 805
Solution
  1. Write $H_n=1+\frac12+\cdots+\frac1n=\frac{S_n}{L_n}$ with $S_n=\sum_{i=1}^n\frac{L_n}i$. Then $k_n<L_n$ exactly when some prime $p\le n$ divides $S_n$.
  2. Let $p^e$ be the largest power of $p$ at most $n$ and $m=\lfloor n/p^e\rfloor$, so $1\le m<p$. The terms $\frac{L_n}i$ with $p^e\nmid i$ are multiples of $p$; the others are $\frac{L_n}{p^ej}$ for $j=1,\dots,m$. So $p\mid S_n$ exactly when $p$ divides the numerator of $H_m$; here $H_1=1$, $H_2=\frac32$, $H_3=\frac{11}6$, $H_4=\frac{25}{12}$.
  3. $p=3$: $m=2$ for $6\le n\le8$ and $18\le n\le26$ ($12$ values; for $27\le n\le30$, $m=1$). $p=5$: $m=4$ for $20\le n\le24$, already counted.
  4. $p=2$ always has $m=1$; $p=7$ has $m\le4$ and the numerators $1,3,11,25$ are not multiples of $7$; $p\ge11$ has $m\le2$.
  5. So there are $\boxed{12}$ values.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year