OFFSET
0,2
COMMENTS
Dirichlet convolution of phi(n) and 3^n. - Richard L. Ollerton, May 07 2021
LINKS
Seiichi Manyama, Table of n, a(n) for n = 0..2095
FORMULA
a(n) = n * A001867(n).
a(n) = 3*A034754(n). - R. J. Mathar, May 18 2014
a(n) = Sum_{k=1..n} 3^gcd(n,k). - Ilya Gutkovskiy, Apr 16 2021
a(n) = Sum_{k=1..n} 3^(n/gcd(n,k))*phi(gcd(n,k))/phi(n/gcd(n,k)). - Richard L. Ollerton, May 07 2021
PROG
(PARI) a(n) = sum(k=1, n, 3^gcd(n, k)); \\ Michel Marcus, Apr 16 2021
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Apr 16 2000
STATUS
approved