Consider a sequence, where the -th term is the smallest positive integer such that when it is written in base representation, it only consists of the digits 1's and 0's, where .
For example, since and and , hence the first three terms of the sequence is .
What is the fourth number in this sequence? Give your answer in decimal representation.
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.
Every number, represented in base-2 would be with 1's and 0's only. Hence, it does not affect the result.
For a number to be a part of the sequence it has to be in 1's and 0's in base 3. Hence, should belong to the set { 3 , 4 , 9 , 1 0 , 1 2 , 1 3 , 2 7 , 2 8 , 3 0 , 3 1 , ⋯ }
To satisfy the base-4 criterion, it should also belong to the set { 4 , 5 , 1 6 , 1 7 , 2 0 , 2 1 , 6 4 , 6 5 , 6 8 , 6 9 , ⋯ }
Similarly, the 4-th term should also be in the sequence, (base-5 sequence) { 5 , 6 , 2 5 , 2 6 , 3 0 , 3 1 , 1 2 5 , 1 2 6 , 1 3 0 , ⋯ }
Searching for the common element gives the answer 8 2 0 0 0
8 2 0 0 0 1 0 = 1 0 1 0 0 0 0 0 0 0 1 0 1 0 0 0 0 2
= 1 1 0 1 1 1 1 1 0 0 1 3
= 1 1 0 0 0 1 1 0 0 4