OFFSET
0,2
COMMENTS
a(n) <= 2^n is a simple upper bound, since x = 2^n requires n steps to reach 1.
But 2*a(n-1) = x is not an upper bound on a(n), since although x/2 = a(n-1) requires a further n-1 steps, x can also step to 3x-1 and doing so might be fewer steps (which it is for example at n=45).
a(n) >= (a(n-1)+1)/3 is a lower bound since a(n) = x must have 3x-1 >= a(n-1) so as to reach somewhere requiring n-1 further steps.
If a(n-1) == 2 (mod 6), then equality a(n) = (a(n-1)+1)/3 holds since then a(n) is odd and its first step must be 3x-1 (as for example at n=4).
LINKS
Kevin Ryde, Table of n, a(n) for n = 0..120
Kevin Ryde, C Code
EXAMPLE
For n=4, a(4) = 3 is the smallest x requiring n=4 steps to reach 1 (by trajectory 3 -> 8 -> 4 -> 2 -> 1).
a(4) = 3 is also an example where a(n) is its lower bound (a(n-1)+1)/3 (with a(3) = 8).
PROG
(C) /* See links. */
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Kevin Ryde, Nov 25 2024
STATUS
approved