OFFSET
1,1
COMMENTS
a(n) is the first term of the row a(n) of the square array A347270.
Integers m such that A008908(m) == 0 (mod 3). - Michel Marcus, Aug 31 2021
LINKS
EXAMPLE
From Michel Marcus and Omar E. Pol, Aug 31 2021: (Start)
Excerpt from A347270 array showing that the 3x+1 sequences that start at 4, 5, 6, 11 and 14 share infinitely many 1's.
4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
5,16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
6, 3,10, 5,16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
11,34,17,52,26,13,40,20,10, 5,16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
14, 7,22,11,34,17,52,26,13,40,20,10, 5,16, 8, 4, 2, 1, 4, 2, 1, ... (End)
PROG
(PARI) f(n) = if (n%2, 3*n+1, n/2); \\ A006370
nb(n) = my(k=1, m=n); while (m!=1, k++; m=f(m)); k; \\ A008908
isok(m) = (nb(m) % 3) == 0; \\ Michel Marcus, Aug 31 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
Omar E. Pol, Aug 25 2021
EXTENSIONS
More terms from Michel Marcus, Aug 31 2021
STATUS
approved