A note from before, this is from a Math Olympiad in Australia.
The increasing sequence 1, 3, 4, 9, 10, 12, 13, . . . consists of all those positive integers which are either powers of 3 or sums of distinct powers of 3. Find the 100th term in the sequence, where 1 is the first term, 3 is the second etc.
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.
To my friend, Shevy Monte Carlo...
Facts:
1- Your numbers would be of form ∑ t = 0 ∞ a t ⋅ 3 t , a t ∈ { 0 , 1 } , such that { a t } t = 0 ∞ is the binary representation x . More precisely, any sequence of S x = { a t } t = 0 ∞ is in a one-to-one correspondence to a member of the original sequence, using the map f ( S x ) = ∑ t = 0 ∞ a t ⋅ 3 t
2- x is greater than y iff f ( S x ) is greater than f ( S y ) .
3- Now that we know the ordering of the sequences, the 1 0 0 -th number in the original sequence is same a the 1 0 0 -th sequence
f ( S 1 0 0 ) = 0 ⋅ 3 0 + 0 ⋅ 3 1 + 1 ⋅ 3 2 + 0 ⋅ 3 3 + 0 ⋅ 3 4 + 1 ⋅ 3 5 + 1 ⋅ 3 6
The number of terms before n-th power of three will be 2 n − 1 (because it is same as the number of non empty subsets of the set of n integers) so the number of terms before 3 6 is 2 6 − 1 = 6 3 and the number of terms before 3 5 is 2 5 − 1 = 3 1 so the number of terms before 3 6 + 3 5 is 6 3 + 1 + 3 1 = 9 5 , thus 97th term is 3 6 + 3 5 + 1 , 98th term is 3 6 + 3 5 + 3 , 99th term is 3 6 + 3 5 + 3 + 1 , 100th term is 3 6 + 3 5 + 3 2 = 9 8 1 .
So the answer given is a little bit weird, can some one please give a better solution...
Solution: Write the numbers from 1 to 100 in binary notation. They are then your first 100 numbers in ternary notation (base 3). So the solution is (1100100)3 = 729 + 243 + 9 = 981.
Problem Loading...
Note Loading...
Set Loading...
If the sequence is the ordered set of sum of distinct powers of 2, then it will be
2 0 , 2 1 , 2 0 + 2 1 , 2 2 , 2 2 + 2 0 , 2 2 + 2 1 , 2 2 + 2 1 + 2 0 , . . . . = 1 , 2 , 3 , 4 , 5 , 6 , 7 = 1 2 , 1 0 2 , 1 1 2 , 1 0 0 2 , 1 0 1 2 , 1 1 0 2 , 1 1 1 2 , . . .
So, find out the 1 0 0 t h in binary notation and calculate the value in base 3 will be the answer for the ordered set of sum of distinct powers of 3.
sum of distinct powers of 3 means you can either use 0 or 1 in each digit.
1 0 0 = 6 4 + 3 2 + 4 = 1 1 0 0 1 0 0 2 1 1 0 0 1 0 0 3 = 7 2 9 + 2 4 3 + 9 = 9 8 1 .