OFFSET
1,2
COMMENTS
a(n) is prime iff n is in A001359, which makes the sequence a supersequence of A006512. - Ivan N. Ianakiev, Nov 07 2018
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..5000
FORMULA
a(n) = [x^n] Sum_{k>=1} tau(k^n)*x^k/(1 - x^k).
If n = Product (p_j^k_j) then a(n) = Product ((k_j + 1)*(n*k_j + 2)/2).
a(prime(n)) = prime(n) + 2 = A052147(n). - Michel Marcus, Nov 25 2018
MAPLE
with(numtheory): seq(coeff(series(add(tau(k^n)*x^k/(1-x^k), k=1..n), x, n+1), x, n), n = 1 .. 50); # Muniru A Asiru, Nov 25 2018
MATHEMATICA
Table[Sum[DivisorSigma[0, d^n], {d, Divisors[n]}], {n, 50}]
a[n_] := Times @@ ((#[[2]] + 1) (n #[[2]] + 2)/2 & /@ FactorInteger[n]); a[1] = 1; Table[a[n], {n, 50}]
PROG
(PARI) a(n) = sumdiv(n, d, numdiv(d^n)); \\ Michel Marcus, Nov 06 2018
(Magma) [&+[NumberOfDivisors(d^n): d in Divisors(n)]: n in [1..50]]; // Vincenzo Librandi, Nov 08 2018
(Python)
from math import prod
from sympy import factorint
def A321348(n): return prod((e+1)*(n*e+2)>>1 for e in factorint(n).values()) # Chai Wah Wu, Dec 13 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Nov 06 2018
STATUS
approved