A057614 a(n+1) = a(n)/2 if 2|a(n), a(n)/3 if 3|a(n), a(n)/5 if 5|a(n), a(n)/7 if 7|a(n), otherwise 11*a(n)+1.
17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51, 17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51, 17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51, 17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51, 17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51, 17, 188, 94, 47, 518, 259, 37, 408, 204, 102, 51
Offset: 0
Links
- Harvey P. Dale, Table of n, a(n) for n = 0..1000
- Eric Weisstein's World of Mathematics, Collatz problem
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,0,0,0,0,0,1).
Programs
-
Mathematica
NestList[Which[Mod[#,2]==0,#/2,Mod[#,3]==0,#/3,Mod[#,5]==0,#/5,Mod[#,7]==0,#/7,True,11#+1]&,17,70] (* or *) PadRight[{},100,{17,188,94,47,518,259,37,408,204,102,51}] (* Harvey P. Dale, Jun 30 2025 *)
Comments