OFFSET
1,4
LINKS
FORMULA
MATHEMATICA
f[p_, e_] := 2^DigitCount[e, 2, 1] - Mod[e, 2]; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n)); prod(i = 1, #f~, 2^hammingweight(f[i, 2]) - f[i, 2]%2); }
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
Amiram Eldar, Feb 18 2023
STATUS
approved