Skip to main content

2011/12 AHSMC Part 1 Problem 16

Problem 16 of 16

For any real number rr, ⌊r⌋\lfloor r \rfloor is the largest integer less than or equal to rr. For example, ⌊π⌋=3\lfloor \pi \rfloor = 3. Let nn be a positive integer. Let a1=na_1 = n, a2=⌊a13⌋a_2 = \bigl\lfloor \frac{a_1}{3} \bigr\rfloor, a3=⌊a23⌋a_3 = \bigl\lfloor \frac{a_2}{3} \bigr\rfloor and a4=⌊a33⌋a_4 = \bigl\lfloor \frac{a_3}{3} \bigr\rfloor. The number of positive integers nn from 11 to 10001000 inclusive such that none of a1a_1, a2a_2, a3a_3 and a4a_4 is divisible by 33 is

Answer choices

Show solution

Solution

Note that if we write a positive integer mm in base 33, then the base 33 representation of ⌊m3⌋\bigl\lfloor \frac{m}{3} \bigr\rfloor is simply the base 33 representation of mm with the rightmost digit removed. Also, a positive integer mm is divisible by 33 if and only if the rightmost digit of mm is 00. Hence, in order that none of a1a_1, a2a_2, a3a_3 and a4a_4 is divisible by 33, the rightmost four digits of the base 33 representation of nn are all non-zero. Note that 1000>2(35+34+33+32+3+1)1000 > 2(3^5 + 3^4 + 3^3 + 3^2 + 3 + 1). If nn has at most 66 digits in its base 33 representation, the first two can be any of 00, 11 and 22, while the last four cannot be 00. There are 32×24=1443^2 \times 2^4 = 144 such numbers. Clearly, nn cannot have more than 77 digits as otherwise n≥37>1000n \ge 3^7 > 1000. Suppose nn has exactly 77 digits. As before, the last four cannot be 00. Since 1000<36+35+33+32+3+11000 < 3^6 + 3^5 + 3^3 + 3^2 + 3 + 1, the first one must be 11, the second must be 00 and the third can be any of 00, 11 and 22. Hence, there are 3×24=483 \times 2^4 = 48 such numbers. The total is 192192. The answer is (B).