OFFSET
1,5
COMMENTS
Also, for n > 1, one less than the number of iterations of A000593 to reach 1.
If there exists any hypothetical odd perfect numbers w, then the iteration will get stuck into a fixed point after encountering them, and we will have a(w) = a(2^k * w) = -1 by the escape clause.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
CROSSREFS
Cf. A054784 (positions of 0's and 1's in this sequence).
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jul 30 2020
STATUS
approved