OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..9098 (rows 1..500)
FORMULA
T(n, 1) = n.
T(n, A340873(n)) = 1.
EXAMPLE
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;
...
PROG
(PARI) row(n) = { my (r=[n]); while (n>1, r=concat(r, n=if (n%2, bitxor(n, 2*n+1), n/2))); r }
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Feb 07 2021
STATUS
approved