The inclusion-exclusion principle says that the size of a finite union is the alternating sum of the sizes of all nonempty intersections of its constituent sets.
For each prime number , let consist of the tuples for which divides every . Exactly tuples lie in , and for distinct primes , exactly lie in their intersection. A tuple has greatest common divisor greater than one with exactly when it belongs to some . Inclusion-exclusion therefore gives the Jordan totient function
Solved by gpt-5.6-sol high.
Codex Wiki