OFFSET
0,3
COMMENTS
For n > 0, first differences of A022331. - Michel Marcus, Oct 03 2013
LINKS
William A. Tedeschi, Table of n, a(n) for n = 0..10000
Mike Winkler, The algorithmic structure of the finite stopping time behavior of the 3x+1 function, arXiv:1709.03385 [math.GM], 2017.
FORMULA
a(A020914(n)) = n + 1. - Reinhard Zumkeller, Mar 28 2015
MATHEMATICA
Table[Length[IntegerDigits[2^n, 3]], {n, 0, 80}] (* Harvey P. Dale, May 02 2012 *)
Table[1 + Floor[n*Log[3, 2]], {n, 0, 73}] (* L. Edson Jeffery, Dec 04 2015 *)
IntegerLength[2^Range[0, 80], 3] (* Harvey P. Dale, Nov 17 2022 *)
PROG
(Haskell)
a020915 = a081604 . a000079 -- Reinhard Zumkeller, Mar 28 2015
(PARI) a(n)=logint(2^n, 3)+1 \\ Charles R Greathouse IV, Sep 02 2015
(Magma) [Round(1+Floor(n*(Log(2))/Log(3))): n in [0..80]]; // Vincenzo Librandi, Dec 05 2015
CROSSREFS
KEYWORD
nonn,base,easy,nice
AUTHOR
EXTENSIONS
More terms from James A. Sellers
STATUS
approved