How to derive the following inequality for all positive integers $n \geq 2$? $$ \frac{n!}{n^n} \leq \left(\frac{1}{2}\right)^k,$$ where $k$ denotes the greatest integer less than or equal to $\dfrac n2$.
We can write $$ \frac{n!}{n^n} = \frac{1}{n} \frac{2}{n} \cdots \frac{n}{n}. $$ What next?
I would be grateful for a proof by induction as well as a direct proof.
\begin{align} \frac{n!}{n^n} &= \frac{\overbrace{1}^{\le \frac{n/2}{n}}}{n} \frac{\overbrace{2}^{\le \frac{n/2}{n}}}{n} \cdots \frac{\overbrace{k}^{\le \frac{n/2}{n}}}{n} \underbrace{\frac{k+1}{n} \cdots \frac{n}{n}}_{\le 1}\le \left(\frac{n/2}{n}\right)^k=\left(\frac{1}{2}\right)^k \end{align}