OFFSET
1,3
LINKS
EXAMPLE
Iterates of A006370 (down to 1) when starting from n = 29 are 29 -> 88 -> 44 -> 22 -> 11 -> 34 -> 17 -> 52 -> 26 -> 13 -> 40 -> 20 -> 10 -> 5 -> 16 -> 4 -> 2 -> 1. Because A000120(2*n) = A000120(n), we can consider only the odd terms in the trajectory (iterates of A139391), and these are 29 -> 11 -> 17 -> 13 -> 5 -> 1. Their hamming weights are 4, 3, 2, 3, 2, 1. However, in this sequence (in contrast to A333860), we discard the binary weight of the starting value (which here is A000120(29)=4), and take the maximum of the rest, therefore a(29) = 3.
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 08 2022
STATUS
approved