OFFSET
1,2
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
FORMULA
Multiplicative with a(p^e) = (p^(e+1)-1)/(p-1) if p <= 5, and 1 otherwise.
Dirichlet g.f.: zeta(s)*(2^s/(2^s-2))*(3^s/(3^s-3))*(5^s/(5^s-5)). - Amiram Eldar, Dec 25 2022
MATHEMATICA
a[n_] := (Times @@ ({2, 3, 5}^(IntegerExponent[n, {2, 3, 5}] + 1) - 1))/8; Array[a, 100]
PROG
(PARI) a(n) = (2^(valuation(n, 2) + 1) - 1) * (3^(valuation(n, 3) + 1) - 1) * (5^(valuation(n, 5) + 1) - 1) / 8;
(Python)
from sympy import multiplicity as v
def a(n): return (2**(v(2, n)+1)-1) * (3**(v(3, n)+1)-1) * (5**(v(5, n)+1)-1) // 8
print([a(n) for n in range(1, 77)]) # Michael S. Branicky, Jul 08 2022
CROSSREFS
KEYWORD
nonn,mult,easy
AUTHOR
Amiram Eldar, Jul 08 2022
STATUS
approved