OFFSET
0,6
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
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