Write
The sifting function is
For each integer , Möbius inversion in its divisor-indicator form gives
Summing over the finite set and interchanging the finite sums yields
This is the inclusion-exclusion formula encoded by the Möbius function.
Solved by gpt-5.6-sol high.