A152199 Trajectory of 7 under the map m -> A082010(m).
7, 12, 6, 3, 5, 9, 15, 25, 41, 66, 33, 53, 85, 137, 220, 110, 55, 89, 143, 229, 367, 588, 294, 147, 236, 118, 59, 95, 153, 245, 393, 629, 1007, 1612, 806, 403, 645, 1033, 1653, 2645, 4233, 6773, 10837, 17340, 8670, 4335, 6937, 11100, 5550, 2775, 4441, 7106
Offset: 1
Keywords
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
Programs
-
Maple
A082010 := proc(n) if type(n,'even') then n/2; else 1+floor(8*n/5) ; fi; end: A152199 := proc(n) option remember; if n = 1 then 7; else A082010(procname(n-1)) ; fi; end: seq(A152199(n),n=1..100) ; # R. J. Mathar, Oct 07 2009
-
Mathematica
NestList[If[EvenQ[ # ], #/2, Floor[8*#/5] + 1] &, 7, 100] (* Zak Seidov, Oct 07 2009 *)
Extensions
More terms from R. J. Mathar and Zak Seidov, Oct 07 2009
Comments