login
A117970
Position of first 0 counting from the least significant digit in the ternary expansion of 2^n.
4
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, 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, 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
OFFSET
0,6
LINKS
Eric Weisstein's World of Mathematics, Ternary
PROG
(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
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric W. Weisstein, Apr 06 2006
EXTENSIONS
Edited by Charles R Greathouse IV, Aug 05 2010
a(0) = 0 prepended by Rémy Sigrist, Dec 20 2019
STATUS
approved