OFFSET
1,6
COMMENTS
Conjecture: For any positive integer starting value n, iterations of n -> n + (number of 1's in binary representation of n) will eventually join A010062.
LINKS
EXAMPLE
PROG
(PARI) a(n) = { my (o=1); for (k=0, oo, while (o<n, o=o+hammingweight(o)); if (o==n, return (k), n=n+hammingweight(n))) } \\ Rémy Sigrist, Apr 05 2020
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Jason Earls, Jun 25 2004
STATUS
approved