# Number theory Challenge

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.


The answer is 981.

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.

4 solutions

Pop Wong
Aug 29, 2020

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 , 10 0 2 , 10 1 2 , 11 0 2 , 11 1 2 , . . . 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, 10_2, 11_2, 100_2, 101_2, 110_2, 111_2, ...

So, find out the 10 0 t h 100^{th} 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.

100 = 64 + 32 + 4 = 110010 0 2 110010 0 3 = 729 + 243 + 9 = 981. 100 = 64 + 32 + 4 = 1100100_2 \\ 1100100_3 = 729 + 243 + 9 = 981.

Alexander Shannon
Aug 30, 2020

To my friend, Shevy Monte Carlo...

Facts:

1- Your numbers would be of form t = 0 a t 3 t , a t { 0 , 1 } \sum_{t=0}^{\infty} a_t \cdot 3^t , a_t\in \{0,1\} , such that { a t } t = 0 \{a_t\}_{t=0}^{\infty} is the binary representation x x . More precisely, any sequence of S x = { a t } t = 0 S_x=\{a_t\}_{t=0}^{\infty} 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 f(S_x)=\sum_{t=0}^{\infty} a_t \cdot 3^t

2- x x is greater than y y iff f ( S x ) f(S_x) is greater than f ( S y ) f(S_y) .

3- Now that we know the ordering of the sequences, the 100 100 -th number in the original sequence is same a the 100 100 -th sequence

f ( S 100 ) = 0 3 0 + 0 3 1 + 1 3 2 + 0 3 3 + 0 3 4 + 1 3 5 + 1 3 6 f(S_{100})=0\cdot3^0+0\cdot3^1+1\cdot3^2+0\cdot3^3+0\cdot3^4+1\cdot3^5+1\cdot3^6

Dan Czinege
Aug 29, 2020

The number of terms before n-th power of three will be 2 n 1 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 3^6 is 2 6 1 = 63 2^6-1=63 and the number of terms before 3 5 3^5 is 2 5 1 = 31 2^5-1=31 so the number of terms before 3 6 + 3 5 3^6+3^5 is 63 + 1 + 31 = 95 63+1+31=95 , thus 97th term is 3 6 + 3 5 + 1 3^6+3^5+1 , 98th term is 3 6 + 3 5 + 3 3^6+3^5+3 , 99th term is 3 6 + 3 5 + 3 + 1 3^6+3^5+3+1 , 100th term is 3 6 + 3 5 + 3 2 = 981 3^6+3^5+3^2=981 .

Shevy Doc
Aug 29, 2020

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.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...