A341231 Irregular triangle read by rows giving trajectory from n to reach 1 under the map A245471.
1, 2, 1, 3, 4, 2, 1, 4, 2, 1, 5, 14, 7, 8, 4, 2, 1, 6, 3, 4, 2, 1, 7, 8, 4, 2, 1, 8, 4, 2, 1, 9, 26, 13, 22, 11, 28, 14, 7, 8, 4, 2, 1, 10, 5, 14, 7, 8, 4, 2, 1, 11, 28, 14, 7, 8, 4, 2, 1, 12, 6, 3, 4, 2, 1, 13, 22, 11, 28, 14, 7, 8, 4, 2, 1, 14, 7, 8, 4, 2, 1
Offset: 1
Examples
Table begins: 1; 2, 1; 3, 4, 2, 1; 4, 2, 1; 5, 14, 7, 8, 4, 2, 1; 6, 3, 4, 2, 1; 7, 8, 4, 2, 1; 8, 4, 2, 1; 9, 26, 13, 22, 11, 28, 14, 7, 8, 4, 2, 1; 10, 5, 14, 7, 8, 4, 2, 1; 11, 28, 14, 7, 8, 4, 2, 1; 12, 6, 3, 4, 2, 1; 13, 22, 11, 28, 14, 7, 8, 4, 2, 1; 14, 7, 8, 4, 2, 1; 15, 16, 8, 4, 2, 1; 16, 8, 4, 2, 1; ...
Links
- Rémy Sigrist, Table of n, a(n) for n = 1..9098 (rows 1..500)
Programs
-
PARI
row(n) = { my (r=[n]); while (n>1, r=concat(r, n=if (n%2, bitxor(n, 2*n+1), n/2))); r }
Formula
T(n, 1) = n.
T(n, A340873(n)) = 1.
Comments