OFFSET
0,4
FORMULA
a(2n) = n, a(2n+1) = least k such that 3^n <= 2^k.
MATHEMATICA
a[n_] := If[EvenQ[n], n/2, Ceiling[((n - 1)/2) Log[3]/Log[2]]]
Table[a[n], {n, 0, 120}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, May 18 2024
STATUS
approved