1, 3, 4, 9, 10, 12, 13, 27 ... is a sequence of all possible sums of distinct positive powers of three in an ascending order.
What is the n'th (e.g. 666th) number in the above sequence?
Write the number in binary but then read it as if in ternary
666 (decimal) = 1010011010 (binary)
1010011010 (ternary) = 21981 (decimal)

Posted by Jer
on 20151120 15:37:41 