I'm trying to proving this formula $\frac{n^2+1}{n+1}$ is $\mathcal{O}(n)$.
As you know we need to come up with $n_0$ and $C$. So I'm confusing a little bit in how to choose a appropriate $C$ since the equation here is division.
For $n > 1$, $n^2+1<n^2+n < n(n+1)$, so $\frac{n^2+1}{n+1} < n$ , for n > 1.
So we proved that for $C = 1, n_0=1:~\frac{n^2+1}{n+1} \leq Cn$ ; ($C=1$)
but I'm stuck here in how to simplest the fraction here.