I recently completed a variation of a problem I found from a mathematical olympiad which is as follows:
Prove that, for all $n \in \mathbb{Z}^+$, $n \geq 1$, $$\sum_{k=1}^n \frac{k}{2^k} < 2 $$
I would like to hear comments on my method of proving the inequality above as well as ways of improving it or making it more rigorous. Thank you!
Proof: We begin by noticing that the series above is a Riemann sum (or approximation by areas of rectangles) for the integral $$ \int_1^n \frac{x}{2^x} dx$$ where the right endpoints are taken, hence $$\sum_{k=1}^n \frac{k}{2^k} < \int_1^n \frac{x}{2^x} dx$$ for all $n$.
By evaluating the original integral, it can be shown that $$ \int_1^n \frac{x}{2^x} dx = \frac{n \ln 2 + 1}{2^n (\ln 2)^2} + \frac{\ln 2 + 1}{2 (\ln 2)^2}$$
As $n$ approaches infinity, the integral approaches the value $\frac{\ln 2 + 1}{2 (\ln 2)^2}$, which is less than $2$. Hence, it can be deduced that $$ \int_1^n \frac{x}{2^x} dx < 2$$ for a large enough $n$.
By inspection and calculation, it is obvious that $$ \int_1^n \frac{x}{2^x} dx < 2$$ when $n > 5, n \in \mathbb{Z}^+$. Hence, when $1 \leq n \leq 5$, the integral has a value that is greater than $2$.
However, it can be verified by calculation that for $1 \leq n \leq 5$, $$\sum_{k=1}^n \frac{k}{2^k} < 2 $$ Since the statement holds true for $1 \leq n \leq 5$ as well as for $n > 5$, where $n \in Z^+$, the statement must be true for all $n \geq 1$. Hence, the proof is complete.
Hope to hear your thoughts on this!
There are some major issues. First, when $n = 1$, the integral is trivially $0$, so you cannot make the claim that $$S(n) = \sum_{k=1}^n \frac{k}{2^k} < \int_{x=1}^n \frac{x}{2^x} \, dx$$ for all $n$. In fact, this inequality is never true. I suspect you intended $$S(n) < \int_{x=0}^n \frac{x}{2^x} \, dx = I(n)$$ but once again this is not true unless $n \ge 5$, and more worrisome is that as $n \to \infty$, $I(\infty) > 2$, so the bound is simply too loose to show that $S(n) < 2$, even if you attempt to patch the reasoning for small cases of $n$.
When we use an integral to bound a sum, the behavior of the summand that is converted to an integrand must be monotone, otherwise you cannot make the argument. If you study the graph of $y = 2^{-x} x$ on $[0, \infty)$, we see that it is increasing from $x = 0$ to $x = (\log 2)^{-1}$, then decreasing afterward. This makes your approach fundamentally problematic.
Instead, what I would recommend is either the direct evaluation of $S$, for which there are numerous methods. This can be accomplished by differentiation of geometric series, e.g. consider $$f(z) = \sum_{k=0}^\infty z^k = \frac{1}{1-z}, \quad |z| < 1,$$ hence $$z f'(z) = \sum_{k=1}^\infty kz^k = \frac{z}{(1-z)^2}.$$ Then $$S(n) < S(\infty) = \left[z f'(z) \right]_{z=1/2} = \frac{1/2}{(1-1/2)^2} = 2$$ with the first inequality a direct consequence of the fact that all terms in $S$ are positive.