A320227 Assuming the truth of the Collatz conjecture, let T(n,i), i = 1..k be the initial k elements of the Collatz trajectory of n, up to when the first 1 appears, but excluding the 1. a(n) is the number of ordered pairs T(n,i) < T(n,j) such that gcd(T(n,i), T(n,j)) = 1.
0, 0, 10, 0, 4, 11, 58, 0, 84, 4, 40, 12, 12, 62, 47, 0, 25, 89, 89, 4, 6, 43, 36, 13, 117, 13, 3395, 66, 66, 49, 3064, 0, 148, 27, 21, 94, 94, 94, 286, 4, 3246, 6, 184, 46, 42, 39, 2924, 14, 122, 122, 120, 14, 14, 3435, 3374, 70, 231, 70, 247, 51, 63, 3101
Offset: 1
Keywords
Examples
a(3) = 10 because the Collatz trajectory T(3,i) of 3 up to the number 1 is 3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 and gcd(T(i), T(j)) = 1 for the 10 following pairs of elements of T: (2, 3), (2, 5), (3, 4), (3, 5), (3, 8), (3, 10), (3, 16), (4, 5), (5, 8) and (5, 16). 28 In the general case, a(n) = 10 for n in the set {3} union {341, 682, 1364, 2728, ...,((4^5 - 1)/3)*2^k, ...} with k = 0, 1, 2, ... a(6) = 11 because the Collatz trajectory T(6,i) of 6 up to the number 1 is 6 -> 3 -> 10 -> 5 -> 16 -> 8 -> 4 -> 2 and gcd(T(i), T(j)) = 1 for the 11 following pairs of elements of T: (2, 3), (2, 5), (3, 4), (3, 5), (3, 8), (3, 10), (3, 16), (4, 5), (5, 6), (5, 8) and (5, 16).
Programs
-
Maple
nn:=1000: for n from 1 to 200 do: m:=n:lst:={}: for i from 1 to nn while(m<>1) do: if irem(m, 2)=0 then lst:=lst union {m}:m:=m/2: else lst:=lst union {m}:m:=3*m+1: fi: od: n0:=nops(lst):it:=0: for j from 1 to n0-1 do: for k from j+1 to n0 do: if gcd(lst[j],lst[k])=1 then it:=it+1: else fi: od: od: printf(`%d, `,it): od:
Extensions
Definition revised by N. J. A. Sloane, Nov 12 2018
Comments