IMO 2006 N3 #
For each positive integer $n$, define $$ f(n) = \frac{1}{n} \sum_{k = 1}^n \left\lfloor \frac{n}{k} \right\rfloor. $$
- Prove that $f(n + 1) > f(n)$ infinitely often.
- Prove that $f(n + 1) < f(n)$ infinitely often.
Solution #
We follow the official solution.
Throughout the code documentation, d denotes the divisor function.
The function f(n) = 1/n ∑_{k ≤ n} ⌊n/k⌋.
Equations
- IMOSL.IMO2006N3.f n = Rat.divInt ↑(∑ k ∈ Finset.Icc 1 n, n / k) ↑n
Instances For
The formula ∑_{k ≤ n} ⌊n/k⌋ = ∑_{k ≤ n} d(k).
theorem
IMOSL.IMO2006N3.f_lt_f_of_sum_div
{m n : ℕ}
(h : m * ∑ k ∈ Finset.Icc 1 n, k.divisors.card < n * ∑ k ∈ Finset.Icc 1 m, k.divisors.card)
:
If m ∑_{k ≤ n} d(k) < n ∑_{k ≤ m} d(k), then f(n) < f(m).
Part 1 #
Part 2 #
For n ≥ 6, we have ∑_{k ≤ n} d(k) > 2n.