I am trying to derive a 'rough' version of Stirling's approximation for $N!$: $$ N!\approx c\sqrt{N}\Big(\frac{N}{e}\Big)^N.\tag{1} $$ I'm aware that Stirling's approximation has $c=\sqrt{2\pi}$, but I'm just trying to obtain (1) at the moment.
What I've done: I have shown already that $$ \int_1^N\frac{\{x\}}{x}dx=\sum_{n=1}^N\ln n-N\ln N+N-1\tag2 $$ in my question here. By $\{x\}$ I refer to the Fractional Part of $x$, where $\{x\}=x-\lfloor x\rfloor$.
I noticed that by applying $\exp$ to the summation in (2), I get $N!$, so I wonder how I can simplify all of this to show (1).
A hint that I am given is to start by showing that $$ \int_1^N\frac{\{x\}}{x}dx=\frac{\ln N}2+\mathcal O(1/N)+C,\tag{3} $$ for some constant $C$. The equality in (3) above looks like it can be simplified somehow to (1), I think, because for example we have $$ \exp((\ln N)/2)=\exp(\ln(N^{1/2}))=\sqrt{N}, $$ which gets me the $\sqrt N$ factor in (1). But beyond that I am a little stuck on how to piece everything together. Thank you.