Problem:
There exist r unique nonnegative integers n1β>n2β>β―>nrβ and r unique integers akβ(1β€kβ€r) with each akβ either 1 or β1 such that
a1β3n1β+a2β3n2β+β―+arβ3nrβ=2008
Find n1β+n2β+β―+nrβ.
Solution:
Every positive integer has a unique base-3 representation, which for 2008 is 22021013β. Note that 2β
3k=(3+(β1))β
3k=3k+1+(β1)β
3k, so that
===β22021013β2β
36+2β
35+2β
33+1β
32+1β
30(37+(β1)β
36)+(36+(β1)β
35)+(34+(β1)β
33)+1β
32+1β
301β
37+(β1)β
35+1β
34+(β1)β
33+1β
32+1β
30,β
and n1β+n2β+β―+nrβ=7+5+4+3+2+0=21β.
The problems on this page are the property of the MAA's American Mathematics Competitions