OFFSET
1,2
COMMENTS
The number of integers k from 1 to n such that gcd(n,k) is a 3-smooth number (A003586). - Amiram Eldar, May 18 2025
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..10000
FORMULA
G.f.: Sum_{k>=1} mu(6 * k) * x^k / (1 - x^k)^2, where mu() is the Moebius function (A008683).
Multiplicative with a(p^e) = p^e if p = 2 or 3, and (p-1)*p^(e-1) otherwise.
Dirichlet g.f.: (zeta(s-1)/zeta(s)) * 2^s * 3^s /((2^s-1) * (3^s-1)). - Amiram Eldar, Nov 12 2025
MATHEMATICA
a[n_] := EulerPhi[6*n]/2; Array[a, 100] (* Amiram Eldar, May 18 2025 *)
PROG
(PARI) a(n) = eulerphi(6*n)/2;
(PARI) my(N=80, x='x+O('x^N)); Vec(sum(k=1, N, moebius(6*k)*x^k/(1-x^k)^2))
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
Seiichi Manyama, May 10 2024
STATUS
approved
