Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #14 Dec 20 2019 14:54:04
%S 0,0,0,0,0,3,2,2,4,4,5,4,2,2,4,0,3,4,2,2,3,3,8,3,2,2,5,5,6,5,2,2,11,4,
%T 3,5,2,2,3,3,11,3,2,2,5,8,4,5,2,2,13,5,3,5,2,2,3,3,4,3,2,2,4,4,7,4,2,
%U 2,4,6,3,4,2,2,3,3,7,3,2,2,6,6,7,6,2,2,10,4,3,7,2,2,3,3,5,3,2,2,11,5,4,17
%N Position of first 0 counting from the least significant digit in the ternary expansion of 2^n.
%H Rémy Sigrist, <a href="/A117970/b117970.txt">Table of n, a(n) for n = 0..10000</a>
%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/Ternary.html">Ternary</a>
%o (PARI) a(n) = { my (p=2^n); for (k=1, oo, if (p==0, return (0), p%3==0, return (k), p\=3)) } \\ _Rémy Sigrist_, Dec 20 2019
%Y Cf. A004642, A102483, A104320, A117971.
%K nonn,base
%O 0,6
%A _Eric W. Weisstein_, Apr 06 2006
%E Edited by _Charles R Greathouse IV_, Aug 05 2010
%E a(0) = 0 prepended by _Rémy Sigrist_, Dec 20 2019