2021 AIME II Problem 9
Problem 9 of 15IntermediateNumber Theory
Find the number of ordered pairs such that and are positive integers in the set and the greatest common divisor of and is not
Your answer
Integer from 0 to 999
Show solution
Solution
Suppose an odd prime divides both and From the order of modulo divides but not so the order contains exactly one more factor of than does. The order also divides so must contain strictly more factors of than writing for the number of factors of we need
Conversely, if let Then so is odd and divides also divides so divides which in turn divides Hence the gcd exceeds exactly when
Among the counts of numbers with are The number of pairs with is
Tagged: multiplicative order · greatest common divisor · power of 2