A057446 To get next term, multiply by 13, add 1 and discard any prime factors < 13.
73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101, 73, 19, 31, 101
Offset: 0
Examples
73 -> 13*73+1 = 950 = 2*5^2*19 -> 19, so second term is 19.
Links
- Eric Weisstein's World of Mathematics, Collatz problem
- Index entries for linear recurrences with constant coefficients, signature (0,0,0,1).
Programs
-
Mathematica
m13[n_]:=First[Times@@@Select[FactorInteger[13 n+1],#[[1]]>11&]]; NestList[ m13,73,80] (* or *) PadRight[{},80,{73,19,31,101}] (* Harvey P. Dale, Apr 16 2019 *) a[n_] := a[n] = Which[n == 0, 73, n <= 4, Times @@ Power @@@ Select[ FactorInteger[13 a[n - 1] + 1], #[[1]] >= 13&], True, a[n - 4]]; Table[a[n], {n, 0, 59}] (* Jean-François Alcover, Aug 21 2023 *)
Comments