2004 AIME II Problem 10
Problem 10 of 15IntermediateNumber TheoryCombinatoricsArithmetic
Let be the set of integers between and whose binary expansions have exactly two ’s. If a number is chosen at random from the probability that it is divisible by is where and are relatively prime positive integers. Find
Your answer
Integer from 0 to 999
Show solution
Solution
The set consists of the numbers with Since is coprime to we have divisible by exactly when The powers of modulo cycle through with period so exactly when
For each difference there are pairs, so the number of multiples of in is
The probability is and since while it is in lowest terms. Thus
Tagged: number base · modular exponentiation · multiplicative order · counting pairs