OFFSET
1,2
COMMENTS
a(n) is the first term of the row a(n) of the square array A347270.
Integers m such that A008908(m) == 1 (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 1, 8, 10, 12 and 13 share infinitely many 1's.
1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
10, 5,16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
12, 6, 3,10, 5,16, 8, 4, 2, 1, 4, 2, 1, 4, 2, 1, 4, 2, 1, ...
13,40,20,10, 5,16, 8, 4, 2, 1, 4, 2, 1, 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) == 1; \\ 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