1

I was looking at the first answer to this question Simple proof of showing the Harmonic number $H_n = \Theta (\log n)$, which claims that the following sequence is decreasing: $$ f(n) = H_n - \log(n) $$ where $\log$ is the natural log and $H_n = \sum_{i = 1}^n \frac{1}{i}$.

Here is my attempt to verify this:

Observe that $$ f(n + 1) - f(n) = H_{n + 1} - \log(n + 1) - (H_n - \log(n)) = \frac{1}{n + 1} + \log \left(\frac{n}{n + 1} \right). $$ But this last term is positive, so it appears that the sequence is increasing! Where is my mistake?

2 Answers2

2

Hint:

$$\frac{1}{n+1} < \int_n^{n+1} \frac{dt}{t} = \log (n+1) - \log n \\ \implies \frac{1}{n+1} -\log (n+1) < - \log n$$

RRL
  • 90,707
0

As the other comments noted, although $\frac{n}{n+1}$ is positive, it is also less than 1 so its natural logarithm must be negative. Thus, the problem comes down to showing that $$\frac{1}{x} + ln\Big(\frac{x-1}{x}\Big)<0$$ That is equivalent to $$f(x)=\frac{1}{x} - ln\Big(\frac{x}{x-1}\Big) < 0.$$ It's easy to see that $$\lim_{x \to \infty} f(x) = 0$$ and also that $$f^\prime (x) = \frac{1}{x^2(x-1)},$$ which is positive for all $x<1$. Thus, $f$ is a strictly inscreasing function. As such, $max(f(x))=\lim_{x\to\infty}f(x)=0$.

Additionally, $f$ is not defined at $x=0$ so $f$ must be strictly negative.

Lorenzo
  • 101