{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}”No results found for “{{searchWords}}”× back to contents
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$?
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$.
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}$.
$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.
$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$.