login
A382290
a(n) = A064547(n) - A001221(n).
5
0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0
OFFSET
1
COMMENTS
First differs from A295662 at n = 64, and from A367512 at n = 128.
Analogous to prime excess (A046660): the excess of the number of Fermi-Dirac factors of n over the number of distinct prime factors of n.
The first positions of a(n) = 0, 1, 2, 3, ..., are n = 1, 8, 128, 3456, 279936, 34992000, 8957952000, ... (A382293).
LINKS
FORMULA
Additive with a(p^e) = A000120(e) - 1 = A048881(e-1).
a(n) = log_2(A382291(n)) = log_2(A037445(n)/A034444(n)).
a(n) >= 0, with equality if and only if n is in A138302.
a(n) = 1 if and only if n is in A382292.
Sum_{k=1..n} a(k) ~ c * n, c = 0.1360544... (A382294).
MATHEMATICA
f[p_, e_] := DigitCount[e, 2, 1] - 1; a[1] = 0; a[n_] := Plus @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = vecsum(apply(x -> hammingweight(x) - 1, factor(n)[, 2]));
KEYWORD
nonn,easy,base
AUTHOR
Amiram Eldar, Mar 21 2025
STATUS
approved