OFFSET
1,4
COMMENTS
Question: Are there any negative terms?
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
MATHEMATICA
Array[Log2@ Last[#] - (Length[#] - 1) &@ NestWhileList[# + #/FactorInteger[#][[-1, 1]] &, #, ! IntegerQ@ Log2@ # &] &, 105] (* Michael De Vlieger, Apr 30 2020 *)
PROG
(PARI) A334098(n) = { my(k=0); while(bitand(n, n-1), k++; my(f=factor(n)[, 1]); n += (n/f[2-(n%2)])); (valuation(n, 2)-k); };
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 29 2020
STATUS
approved