2018 AMC 12A Problem #13

How many nonnegative integers can be written in the form a 7 3 7 + a 6 3 6 + a 5 3 5 + a 4 3 4 + a 3 3 3 + a 2 3 2 + a 1 3 1 + a 0 3 0 , a_7 \cdot 3^7 + a_6 \cdot 3^6 + a_5 \cdot 3^5 + a_4 \cdot 3^4 + a_3 \cdot 3^3 + a_2 \cdot 3^2 + a_1 \cdot 3^1 + a_0 \cdot 3^0, where a i { 1 , 0 , 1 } a_i \in \{-1,0,1\} for 0 i 7 0 \leq i \leq 7 ?


Next problem

Previous problem

All problems

729 59,048 3281 1094 512

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Ryan Ong
Feb 9, 2018

For every representation of a 7 3 7 + a 6 3 6 + a 5 3 5 + a 4 3 4 + a 3 3 3 + a 2 3 2 + a 1 3 1 + a 0 3 0 a_7\cdot3^7+a_6\cdot3^6+a_5\cdot3^5+a_4\cdot3^4+a_3\cdot3^3+a_2\cdot3^2+a_1\cdot3^1+a_0\cdot3^0 . that equals a positive number x x . There is always a representation that equals x -x . Just times our initial representation of a 7 3 7 + a 6 3 6 + a 5 3 5 + a 4 3 4 + a 3 3 3 + a 2 3 2 + a 1 3 1 + a 0 3 0 a_7\cdot3^7+a_6\cdot3^6+a_5\cdot3^5+a_4\cdot3^4+a_3\cdot3^3+a_2\cdot3^2+a_1\cdot3^1+a_0\cdot3^0 that equals positive number x by -1. Thus, #(positive representations) = #(negative representations). Since each a i a_i can have 3 choices of numbers.The answer is ( ( 3 8 1 ) / 2 ) + 1 ((3^8-1)/2) + 1

We subtracted 1 because 0 is neither a positive or negative number.

Jerry McKenzie - 3 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...