OFFSET
0,3
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 0..10000
EXAMPLE
The trajectory of 39 is 39 -> 19683 -> 5038848 -> 214990848 -> 17179869184 -> 1735247072139264 -> 19999187712 -> 102372436321763328 -> 8813365017182208 -> 0, so a(39) = 102372436321763328.
MAPLE
maxtraj := proc(n) local h, p, M, t1, t2, i; M:=100; t1:=n; h:=n; for i from 1 to M do t2:=powertrain(t1); if t2 = t1 then RETURN(n, h); fi; if t2 > t1 then h:=t2; fi; t1:=t2; od; RETURN(n, -1); end;
CROSSREFS
KEYWORD
nonn,base
AUTHOR
J. H. Conway and N. J. A. Sloane, Dec 10 2007
STATUS
approved