Problem

Source:

Tags: MATHCOUNTS, number theory proposed, number theory



The increasing sequence $1; 3; 4; 9; 10; 12; 13; 27; 28; 30; 31, \ldots$ is formed with positive integers which are powers of $3$ or sums of different powers of $3$. Which number is in the $100^{th}$ position?