OFFSET
1,4
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
For all n >= 0, a(2^n) = n.
MATHEMATICA
f[p_, e_] := If[p == 2, 1, NextPrime[p, -1]^e]; g[1] = 1; g[n_] := Times @@ f @@@ FactorInteger[n]; h[1] = 0; h[n_] := h[n] = If[EvenQ[n], h[n/2] + 1, h[g[n]] + 1]; a[n_] := h[n] - h[DivisorSigma[1, n/2^IntegerExponent[n, 2]]]; Array[a, 100] (* Amiram Eldar, Sep 19 2021 *)
PROG
CROSSREFS
KEYWORD
sign
AUTHOR
Antti Karttunen, Aug 30 2021
STATUS
approved