Terry has invented a new way to extend lists of numbers. To Terryfy a list such as (1,8) he creates two lists (2,9) and (3,10) where each term is one more than the corresponding term in the previous list, and then joins the three lists together to give (1,8,2,9,3,10). If he starts with a list containing one number (0) and repeatedly Terryfyies the list it creates the list (0,1,2,1,2,3,2,3,4....) What is the 1000th number in this Terryfic list?
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.
The answer is the digit sum of n in base- 3 .
Since 1 0 0 0 is 1 1 0 1 0 0 1 in base 3 , we get the answer of 1 + 1 + 0 + 1 + 0 + 0 + 1 = 4 .
Note : we start counting with 0 .