I am currently learning a bit about number theory - currently studying continuous fractions and came up with the following task:
Task. Show that the floor function of $$ \frac{n + \sqrt{n^2+4}}{2},$$ where $n$ is a positive integer, i.e., $n \in \Bbb N$ is $n$.
Obviously, the objective of this is to say that $ \frac{n + \sqrt{n^2+4}}{2} = [n; (...)]$, but I can't make this first step. How would one prove what's wanted?
I have tried doing it by induction and also tried squaring the expression, but couldn't find something that helped me.
Thanks for any help in advance.
The major observation is that the addition of $4$ does not increase the value of $n^2$ by very much—after taking square roots and dividing by $2$, this $+4$ contributes little to the term. In more detail:
Observe that $$ n^2 + 4 = (n+2)^2 - 4n, $$ where $4n > 0$ (since $n > 0$). Then, as all of the relevant terms are positive, \begin{align} n^2 < n^2 + 4 < (n+2)^2 &\iff n < \sqrt{n^2 + 4} < n+2 && \text{(take square roots)}\\ &\iff 2n < n + \sqrt{n^2+2} < 2n + 2 && \text{(add $n$)} \\ &\iff n < \frac{n+\sqrt{n^2+4}}{2} < n+1. && \text{(multiply by $\tfrac{1}{2}$)} \end{align} This is precisely what was desired.