How many nonnegative integers can be written in the form ∑i=04ai⋅4i where ai∈−1,0,1,2 for 0≤i≤4?
341
512
683
729
1024