Problem

Source: Croatia 2000 4th Grade P4

Tags: number theory, floor function



Let $S$ be the set of all squarefree numbers and $n$ be a natural number. Prove that $$\sum_{k\in S}\left\lfloor\sqrt{\frac nk}\right\rfloor=n.$$