Bounds on the partial sums of the logarithm #
The partial sum ∑ n ∈ Finset.Ioc 0 N, Real.log n equals Real.log N !. Comparing the sum with
the integral ∫ t in 1..x, Real.log t = x * log x - x + 1 yields crude upper and lower bounds of
the form ∑ n ∈ Ioc 0 ⌊x⌋₊, log n = x * log x - x + O(log x), which are convenient in analytic
number theory (for instance in the proof of Mertens' theorems).
Main statements #
sum_log_eq_log_factorial:∑ n ∈ Ioc 0 N, log n = log N !, and itsFinset.rangerestatementsum_log_add_one_eq_log_factorial:∑ n ∈ range N, log (n + 1) = log N !.sum_log_le/le_sum_log: two-sided bounds on∑ n ∈ Ioc 0 ⌊x⌋₊, log n.le_sum_log_nat: a sharper lower boundN * log N - N ≤ ∑ n ∈ Ioc 0 N, log nvia Stirling.
The partial sum of the logarithm is equal to the log of the factorial.
The partial sum of the logarithm, in Finset.range form: ∑ n ∈ range N, log (n + 1).
A sharper bound on the partial sum of the logarithm in the natural number case.