OFFSET
1,2
COMMENTS
Records of a(n)/n appear to happen for n in A083318.
LINKS
FORMULA
a(n) >= n, equality implies that n equals 1 or is even.
a(n) < 4*n.
EXAMPLE
For n = 10:
- the trajectory of 10 under A245471 is 10 -> 5 -> 14 -> 7 -> 8 -> 4 -> 2 -> 1,
- so a(10) = 14.
PROG
(PARI) a(n) = { my (m=n); while (n>1, m=max(m, n=if (n%2, bitxor(n, 2*n+1), n/2))); m }
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Feb 07 2021
STATUS
approved