$ \textbf{Lemma :} $
If $ p $ is an integer, and $ f:\left[p,+\infty\right)\rightarrow\mathbb{R}_{+} $ is continuous and decreasing, then there exists a constant $ \ell $ such that : $$ \sum_{k=p}^{n}{f\left(k\right)}=\int_{p}^{n}{f\left(x\right)\mathrm{d}x}+\ell+\underset{\overset{n\to +\infty}{}}{\mathcal{o}}\left(1\right) $$
$ \ $
$ \textbf{Hint}$ (To prove the previous lemma) $\textbf{:}$
It is possible to prove that the sequence $ \left\lbrace\sum\limits_{k=p}^{n}{f\left(k\right)}=\int\limits_{p}^{n}{f\left(x\right)\mathrm{d}x}\right\rbrace_{n} $ is convergent by proving that it is monotone and bounded.
Denoting $ H_{n}=\sum\limits_{k=1}^{n}{\frac{1}{k}} $, by using the previous lemma, we have : $$ H_{n}=\ln{n}+\gamma+ \underset{\overset{n\to +\infty}{}}{\mathcal{o}}\left(1\right)=\ln{n}+\underset{\overset{n\to +\infty}{}}{\mathcal{O}}\left(1\right) $$
Let $ j $ be a positive integer, we have : $$ \sum_{i=j}^{n-1}{\frac{n}{i-1}}=nH_{n-2}-nH_{j-2}=n\left(\ln{\left(n-2\right)}-H_{j-2}+\underset{\overset{n\to +\infty}{}}{\mathcal{O}}\left(1\right)\right)=n\ln{n}+\underset{\overset{n\to +\infty}{}}{\mathcal{O}}\left(n\right) $$
For the second one, we have, for some integers $ n,j $, the following : $$ \small\sum_{i=j}^{n-1}{\left(\frac{n}{i+1}\right)^{2}\left(1-\frac{i+1}{n}\right)}\leq n^{2}\sum_{i=0}^{n-1}{\left(1-\frac{i+1}{n}\right)}=n^{2}\sum_{i=1}^{n}{\left(1-\frac{i}{n}\right)}\leq n^{3}\int_{0}^{1}{\left(1-x\right)\mathrm{d}x}=\frac{n^{3}}{2} $$
Thus : $$ \sum_{i=j}^{n-1}{\left(\frac{n}{i+1}\right)^{2}\left(1-\frac{i+1}{n}\right)}=\underset{\overset{n\to +\infty}{}}{\mathcal{O}}\left(n^{3}\right) $$