SOLUTION: Consider the sequence 1, 3, 4, 9, 10, 12, 13, ... which consists of every positive integer that can be expressed as a sum of distinct powers of 3. What is the first term that

Algebra.Com
Question 1210225: Consider the sequence
1, 3, 4, 9, 10, 12, 13, ...
which consists of every positive integer that can be expressed as a sum of distinct powers of 3.
What is the first term that is greater than 20?

Found 2 solutions by CPhill, greenestamps:
Answer by CPhill(1959)   (Show Source): You can put this solution on YOUR website!
Let's analyze how the numbers in the sequence are formed by sums of distinct powers of 3:
Powers of 3 are:
$3^0 = 1$
$3^1 = 3$
$3^2 = 9$
$3^3 = 27$
$3^4 = 81$
and so on.
The sequence consists of numbers that can be written in the form $c_0 \cdot 3^0 + c_1 \cdot 3^1 + c_2 \cdot 3^2 + c_3 \cdot 3^3 + \dots$, where each $c_i$ is either 0 or 1 (because the powers of 3 must be distinct).
Let's generate the terms of the sequence in increasing order:
Using only $3^0 = 1$:
$1 \cdot 3^0 = 1$
Using $3^0 = 1$ and $3^1 = 3$:
$1 \cdot 3^0 = 1$ (already listed)
$1 \cdot 3^1 = 3$
$1 \cdot 3^0 + 1 \cdot 3^1 = 1 + 3 = 4$
Using $3^0 = 1$, $3^1 = 3$, and $3^2 = 9$:
$1 \cdot 3^0 = 1$
$1 \cdot 3^1 = 3$
$1 \cdot 3^2 = 9$
$1 \cdot 3^0 + 1 \cdot 3^1 = 1 + 3 = 4$
$1 \cdot 3^0 + 1 \cdot 3^2 = 1 + 9 = 10$
$1 \cdot 3^1 + 1 \cdot 3^2 = 3 + 9 = 12$
$1 \cdot 3^0 + 1 \cdot 3^1 + 1 \cdot 3^2 = 1 + 3 + 9 = 13$
The sequence generated so far in increasing order is: 1, 3, 4, 9, 10, 12, 13, ...
We are looking for the first term that is greater than 20. Let's continue generating terms by including the next power of 3, which is $3^3 = 27$.
The terms formed using $3^0, 3^1, 3^2$ are all less than $1 + 3 + 9 = 13$. Now, let's consider sums that include $3^3 = 27$:
$1 \cdot 3^3 = 27$
$1 \cdot 3^0 + 1 \cdot 3^3 = 1 + 27 = 28$
$1 \cdot 3^1 + 1 \cdot 3^3 = 3 + 27 = 30$
$1 \cdot 3^2 + 1 \cdot 3^3 = 9 + 27 = 36$
$1 \cdot 3^0 + 1 \cdot 3^1 + 1 \cdot 3^3 = 1 + 3 + 27 = 31$
$1 \cdot 3^0 + 1 \cdot 3^2 + 1 \cdot 3^3 = 1 + 9 + 27 = 37$
$1 \cdot 3^1 + 1 \cdot 3^2 + 1 \cdot 3^3 = 3 + 9 + 27 = 39$
$1 \cdot 3^0 + 1 \cdot 3^1 + 1 \cdot 3^2 + 1 \cdot 3^3 = 1 + 3 + 9 + 27 = 40$
Looking at the sequence 1, 3, 4, 9, 10, 12, 13, ..., the next terms will be formed by sums of distinct powers of 3 greater than 13. The next power of 3 is 27. The smallest positive integer that can be expressed as a sum of distinct powers of 3 and is greater than 13 will involve the smallest power of 3 that is greater than 13, which is 27.
The smallest term in the sequence that includes $3^3 = 27$ is $1 \cdot 3^3 = 27$.
Since 27 is greater than 20, and all previous terms in the sequence (formed by sums of 1, 3, and 9) are less than or equal to $1+3+9=13$, the first term in the sequence that is greater than 20 is 27.
Final Answer: The final answer is $\boxed{27}$

Answer by greenestamps(13200)   (Show Source): You can put this solution on YOUR website!


The last given number in the sequence is .

Since that number is the sum of all the distinct powers of 3 up to the second power, the next number in the sequence must involve the third power of 3.

3 to the third power is 27, which is greater than 20, so it is the next number in the sequence.

ANSWER: 27


RELATED QUESTIONS

Consider the sequence 1, 5, 6, 25, 26, 30, 31, ... which consists of every positive... (answered by CPhill,greenestamps)
Every positive integer can be expressed as a sum of distinct powers of 2. Note that 1... (answered by Edwin McCravy)
Show that there is only one set of different positive integers, x,y,z that 1=... (answered by Edwin McCravy)
The number 3 can be expressed as a sum of one or more positive integers in four ways,... (answered by Edwin McCravy)
How many ways can the value 13 be expressed as the sum of exactly 3 different positive... (answered by jim_thompson5910)
Let n be a positive integer greater than 1. We call n prime if the only positive integers (answered by jim_thompson5910)
How many positive integers under 1000 with units digit 9 can be expressed as the sum of... (answered by greenestamps)
Show that any positive integer N = 7 modulo 8 can never be expressed as the sum of the... (answered by Sphinx pinastri)
What is the smallest positive integer that can be expressed as the sum of nine... (answered by Fombitz)