The number of positive squarefree integers $i \le n$ is given by: $$C(n)=\sum_{k=1}^{\lfloor\sqrt{n}\rfloor}\mu(k)\left\lfloor\frac{n}{k^{2}}\right\rfloor.$$ The number of positive integers $i\le n$ coprime to the first $k$ prime numbers admits the recurrence relation: $$\phi(n, k) = \lfloor n / p_k \rfloor - \phi(\lfloor n/p_k \rfloor, k-1) + \phi(n, k-1)$$
But I haven't managed to find any literature regarding the subject of numbers that are both squarefree AND coprime to the first $k$ prime numbers, with the exception of odd/even such integers ($k=1, p = 2$). Let $P_k = p_1\cdot p_2 \cdot...\cdot p_k$ be the primorial of the first $k$ primes. If we define $$f(n,k) = \sum_{i = 1 \atop gcd(i,P_k)=1}^{n}|\mu(i)|$$
to be the count of squarefree integers coprime to the first $k$ primes, then does this formula admit any elegant representations? Is there any way to efficiently exactly count (not an approximation) such numbers mathematically or at least compute this count efficiently?