Position of first zero digit in 3^n, counting from the right.

0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 2, 6, 4, 4, 0, 2, 2, 2, 0, 0, 5, 0, 0, 0, 10, 6, 0, 10, 10, 0, 2, 15, 7, 3, 9, 2, 2, 2, 6, 14, 10, 6, 8, 8, 3, 4, 4, 21, 12, 4, 2, 13, 7, 5, 3, 2, 2, 2, 19, 6, 22, 5, 4, 0, 19, 6, 17, 13, 13, 10, 2, 15, 18, 8, 11, 2, 2

0

Zero indicates that there are no zeros in the number. Is there a maximum value for this function? This question was discussed in MathOverflow.

T. D. Noe, Plot of 10001 terms

T. D. Noe, Table of 10001 terms

MathOverflow, Zeros in the representation of powers of 3

(Mma) Table[s = Position[Reverse[IntegerDigits[3^n]], 0]; If[Length[s] == 0, 0, s[[1, 1]]], {n, 0, 100}]

nonn,base

T. D. Noe, Oct 12 2014