Consider the sequence
1, 3, 4, 9, 10, 12, 13, ... which consists of every positive integer that can be expressed as a sum of distinct powers of 3.
What is the first term that is greater than 20?