How many positive integers can be written in the form ∑i=05ai⋅3i where ai∈−1,0,1 for 0≤i≤5?
243
364
365
728
729