OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..5000
FORMULA
G.f.: Sum_{k>=1} k * x^k / (1 - k^2*x^(2*k)).
a(2^n) = 2^n. - Seiichi Manyama, Apr 07 2020
MATHEMATICA
Table[DivisorSum[n, (n/#)^# &, OddQ[#] &], {n, 50}]
nmax = 50; CoefficientList[Series[Sum[k x^k/(1 - k^2 x^(2 k)), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) a(n) = sumdiv(n, d, if ((d)%2, (n/d)^d)); \\ Michel Marcus, Apr 07 2020
(Python)
from sympy import divisors
def A333823(n): return sum((n//d)**d for d in divisors(n>>(~n & n-1).bit_length(), generator=True)) # Chai Wah Wu, Jul 09 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Apr 06 2020
STATUS
approved