OFFSET
1,2
COMMENTS
Sum of divisors d of n such that n/d is power of 3.
Inverse Moebius transform of A195459.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..20000
FORMULA
G.f. A(x) satisfies: A(x) = A(x^3) + x/(1 - x)^2.
G.f.: Sum_{k>=1} phi(3*k) * x^k / (2 * (1 - x^k)), where phi = A000010.
a(n) = (1/2) * Sum_{d|n} phi(3*d).
From Amiram Eldar, Nov 17 2022: (Start)
Multiplicative with a(3^e) = (3^(e+1)-1)/2, and a(p^e) = p^e for p != 3.
Sum_{k=1..n} a(k) ~ (9/16) * n^2. (End)
Dirichlet g.f.: zeta(s-1)*(1+1/(3^s-1)). - Amiram Eldar, Dec 17 2022
MATHEMATICA
nmax = 70; CoefficientList[Series[Sum[x^(3^k)/(1 - x^(3^k))^2, {k, 0, Floor[Log[3, nmax]] + 1}], {x, 0, nmax}], x] // Rest
a[n_] := DivisorSum[n, # &, IntegerQ[Log[3, n/#]] &]; Table[a[n], {n, 1, 70}]
a[n_] := 1/2 Sum[EulerPhi[3 d], {d, Divisors[n]}]; Table[a[n], {n, 1, 70}]
PROG
(PARI) A327625(n) = (n+sumdiv(n, d, my(b=0); if(isprimepower(n/d, &b)&&(3==b), d, 0))); \\ Antti Karttunen, Sep 19 2019
(Magma) [(1/2)*&+[EulerPhi(3*d) :d in Divisors(n)]:n in [1..70]]; // Marius A. Burtea, Sep 19 2019
CROSSREFS
KEYWORD
nonn,mult
AUTHOR
Ilya Gutkovskiy, Sep 19 2019
STATUS
approved