OFFSET
1,3
LINKS
FORMULA
From Peter Munn, Sep 11 2021: (Start)
a(A001146(m)) = 1.
a(A331590(m, k)) = a(m) + a(k).
For squarefree k, a(k*m^2) = a(k) + a(m) = A048675(k) + a(m).
(End)
MATHEMATICA
Array[If[# == 1, 0, PrimeOmega@ Apply[Times, Flatten@ Map[Function[{p, e}, Map[Prime[Log2@ # + 1]^(2^(PrimePi@ p - 1)) &, DeleteCases[NumberExpand[e, 2], 0]]] @@ # &, FactorInteger[#]]]] &, 75] (* Michael De Vlieger, Feb 08 2020 *)
PROG
(PARI) A331740(n) = if(1==n, 0, my(f=factor(n)); sum(i=1, #f~, hammingweight(f[i, 2])*(2^(primepi(f[i, 1])-1))));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 05 2020
STATUS
approved