Skip to main content

AMC 12 Mock Exam 2 Problem 19

Problem 19 of 25

How many integers nn with 0≤n<10240\le n<1024 have exactly five 11's in their base-22 representation and are divisible by 33?

Answer choices

Show solution

Solution

Such nn have at most 1010 binary digits; write n=∑k=09dk2kn=\sum_{k=0}^{9}d_k2^k with exactly five dk=1d_k=1. Since 2≡−1(mod3)2\equiv-1\pmod3, we have 2k≡12^k\equiv1 for even kk and 2k≡−12^k\equiv-1 for odd kk. If ee of the five 11's are in the even positions 0,2,4,6,80,2,4,6,8 (and 5−e5-e in the odd positions 1,3,5,7,91,3,5,7,9), then n≡e−(5−e)=2e−5≡2e+1(mod3).n\equiv e-(5-e)=2e-5\equiv 2e+1\pmod 3. This is 00 exactly when 2e≡22e\equiv2, i.e., e≡1(mod3)e\equiv1\pmod3, so e=1e=1 or e=4e=4. The count is (51)(54)+(54)(51)=25+25=50\binom51\binom54+\binom54\binom51=25+25=\boxed{50}.

(Guessing that a third of the (105)=252\binom{10}{5}=252 such numbers work gives the distractor 8484.)

Tagged: base-2 representation and divisibility by 3