A223084 Trajectory of 80 under the map n-> A006369(n).
80, 107, 143, 191, 255, 170, 227, 303, 202, 269, 359, 479, 639, 426, 284, 379, 505, 673, 897, 598, 797, 1063, 1417, 1889, 2519, 3359, 4479, 2986, 3981, 2654, 3539, 4719, 3146, 4195, 5593, 7457, 9943, 13257, 8838, 5892, 3928, 5237, 6983, 9311, 12415, 16553, 22071
Offset: 1
Keywords
Links
- T. D. Noe, Table of n, a(n) for n = 1..10000
- J. H. Conway, On unsettleable arithmetical problems, Amer. Math. Monthly, 120 (2013), 192-198.
Crossrefs
Programs
-
Maple
f:=proc(N) if N mod 3 = 0 then 2*(N/3); elif N mod 3 = 2 then 4*((N+1)/3)-1; else 4*((N+2)/3)-3; fi; end; t1:=[80]; for n from 1 to 100 do t1:=[op(t1),f(t1[nops(t1)])]; od: t1;
-
Mathematica
t = {80}; While[n = t[[-1]]; s = Switch[Mod[n, 3], 0, 2*n/3, 1, (4*n - 1)/3, 2, (4*n + 1)/3]; Length[t] < 100 && ! MemberQ[t, s], AppendTo[t, s]]; t (* T. D. Noe, Mar 22 2013 *) SubstitutionSystem[{n_ :> Switch[Mod[n, 3], 0, 2n/3, 1, (4n - 1)/3, , (4n + 1)/3]}, {80}, 60] // Flatten (* _Jean-François Alcover, Mar 01 2019 *)
Comments