Define $S(n)$ as $1$ when $n$ is square-free, and $0$ otherwise. Now prove that: $$\displaystyle \sum_{n \leq x}{S(n)} \geq \lfloor x\rfloor - \displaystyle\sum_{2 \leq d \leq \sqrt{x} } { \frac{x}{d^2} } $$ I have tried to prove it by induction, i.e. assume true for $x = x_0$, then consider separate cases for $x=x_0 +1 $ as follows:
- $x_0 + 1$ is not divisible by any squares: Trivial to show inequality holds
- $x_0 + 1$ is a square number: Trivial to show inequality holds
- $x_0 + 1$ is not a square number but is divisible by some $d^2$.
It is the third case I am struggling with. I have also tried a counting argument but haven't come up with anything substantive. Any help would be appreciated.