2011/12 AHSMC Part 1 Problem 16
Problem 16 of 16
For any real number , is the largest integer less than or equal to . For example, . Let be a positive integer. Let , , and . The number of positive integers from to inclusive such that none of , , and is divisible by is
Answer choices
Show solution
Solution
Note that if we write a positive integer in base , then the base representation of is simply the base representation of with the rightmost digit removed. Also, a positive integer is divisible by if and only if the rightmost digit of is . Hence, in order that none of , , and is divisible by , the rightmost four digits of the base representation of are all non-zero. Note that . If has at most digits in its base representation, the first two can be any of , and , while the last four cannot be . There are such numbers. Clearly, cannot have more than digits as otherwise . Suppose has exactly digits. As before, the last four cannot be . Since , the first one must be , the second must be and the third can be any of , and . Hence, there are such numbers. The total is . The answer is (B).