OFFSET
1,2
LINKS
Vaclav Kotesovec, Table of n, a(n) for n = 1..380
FORMULA
a(n) ~ n^n / (1 - exp(-1)).
a(n) = Sum_{k=1..n} k^n * floor(n/k). - Daniel Suteu, Nov 10 2018
MAPLE
with(NumberTheory): seq(sum(sigma[n](k), k = 1..n), n = 1..20); # Vaclav Kotesovec, Aug 20 2019
MATHEMATICA
Table[Sum[DivisorSigma[n, k], {k, 1, n}], {n, 1, 20}]
PROG
(PARI) a(n) = sum(k=1, n, sigma(k, n)); \\ Michel Marcus, Sep 13 2018
(PARI) a(n) = sum(k=1, n, k^n * (n\k)); \\ Daniel Suteu, Nov 10 2018
(Python)
from math import isqrt
from sympy import bernoulli
def A319194(n): return (((s:=isqrt(n))+1)*((b:=bernoulli(n+1))-bernoulli(n+1, s+1))+sum(k**n*(n+1)*((q:=n//k)+1)-b+bernoulli(n+1, q+1) for k in range(1, s+1)))//(n+1) # Chai Wah Wu, Oct 21 2023
CROSSREFS
KEYWORD
nonn
AUTHOR
Vaclav Kotesovec, Sep 13 2018
STATUS
approved