The pair counted twice
transcript
Count the pairs with gcd one. Start from all the pairs. Subtract the pairs sharing a prime, one prime at a time. It looks right. Does it hold?
Take two route loops of six minutes each. They form exactly one pair. The pair is subtracted for two, then again for three.
One pair to start with. Subtracted twice. The result is minus one. A count cannot be negative.
The gcd of six and six is six, not one. So the true count of coprime pairs is zero. The shortcut gave a negative count, so it was wrong. It broke on a pair sharing two primes.
Subtract the pairs for each prime. Add back the pairs sharing two primes. Subtract those sharing three. And so on.
Subtracting once is not enough. Pairs that share two primes go off twice. So add those pairs back in. Then the count is right. Full breakdown in the lecture.