Im trying to compute the following
$\sum_{\substack{q \leq x \\ q \ square free}} q^{-1/2}$
I know that $\sum_{\substack{q \leq x \\ q \ square free}} 1 = \frac{6}{\pi^2}x + \mathcal{O}(\sqrt{x})$
and
$\sum_{n \leq x } n^{-1/2} = 2\sqrt{x}+c+\mathcal{O}\Big(\frac{1}{\sqrt{x}}\Big)$ where $c$ is some constant. Is there there any way to combine the two to get a result for the first summation?
If we define $$c(x)=\sum_{\substack{q \leq x \\ q \ square free}} 1,$$ the sum is $$\sum_{n\le x}\frac1{\sqrt{n}}(c(n)-c(n-1))=\sum_{n\le x}\left(\frac1{\sqrt{n}}-\frac1{\sqrt{n+1}}\right)c(n)+\frac{c(\lfloor x\rfloor)}{\sqrt{\lfloor x\rfloor+1}},$$ that's called partial summation. I think it should be easy to move on from here.