OFFSET
1,2
LINKS
Seiichi Manyama, Table of n, a(n) for n = 1..1000
FORMULA
G.f.: Sum_{k>=1} x^k / (1 - 4*x^k).
G.f.: Sum_{k>=1} 4^(k-1) * x^k / (1 - x^k).
a(n) ~ 4^(n-1). - Vaclav Kotesovec, Jun 05 2021
MATHEMATICA
Table[Sum[4^(d - 1), {d, Divisors[n]}], {n, 1, 25}]
nmax = 25; CoefficientList[Series[Sum[x^k/(1 - 4 x^k), {k, 1, nmax}], {x, 0, nmax}], x] // Rest
PROG
(PARI) a(n) = sumdiv(n, d, 4^(d-1)); \\ Michel Marcus, Dec 13 2020
(Magma)
A339684:= func< n | (&+[4^(d-1): d in Divisors(n)]) >;
[A339684(n): n in [1..40]]; // G. C. Greubel, Jun 25 2024
(SageMath)
def A339684(n): return sum(4^(k-1) for k in (1..n) if (k).divides(n))
[A339684(n) for n in range(1, 41)] # G. C. Greubel, Jun 25 2024
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Dec 12 2020
STATUS
approved