There is quite general question.
Let $A=\{1,2,3,...,n\}$ be a set.
Calculate the following: $$W_{k}=\sum_{\substack{a_{1},...,a_{k}\in A\\ a_{i}\neq a_{j} \text{ if }i\neq j\\ \gcd(a_{1},...a_{k})=1}}\hspace{-1.5em}1$$
For example $W_{2}=\sum_{2\le a \le N}\phi(a)$
Where $\phi$ is Euler totient function.
But I have no idea how to carry it on.
I wonder whether inclusion-exclusion principle should be used.
I hope for help.
Regards.