OFFSET
1,2
COMMENTS
The number of exponentially odd divisors of n^2 is equal to the number of divisors of n, A000005(n).
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
MATHEMATICA
f[p_, e_] := (p^(2*e+1) - p)/(p^2 - 1) + 1; a[1] = 1; a[n_] := Times @@ f @@@ FactorInteger[n]; Array[a, 100]
PROG
(PARI) a(n) = {my(f = factor(n), p, e); prod(i = 1, #f~, p = f[i, 1]; e = f[i, 2]; (p^(2*e+1) - p)/(p^2 - 1) + 1); }
CROSSREFS
KEYWORD
nonn,easy,mult,new
AUTHOR
Amiram Eldar, Jan 20 2025
STATUS
approved