The partial sums of $\log n$

121 Views Asked by At

I know that $$\sum_{n\leq x}\log(n)=x\log(x)-x+O(\log(x))$$ but I read (in a proof of a theorem ) the following formula $$\sum_{n\leq x}\log(n)=x\log(x)+O(x)$$ Why are the two forms equal?