How many positive integers less than or equal to 100 cannot be written as the sum of distinct powers of 3?
There are precisely 77 positive integers <= 100 that cannot be written as the sum of distinct powers of 3.
**** Detailed explanation will follow shortly.