login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A350128 a(n) = Sum_{k=1..n} k^n * floor(n/k)^2. 4
1, 8, 44, 417, 4545, 69905, 1207937, 24904806, 575256641, 14947281595, 427836523971, 13429362462839, 457637290140469, 16843379604615375, 665494379869134005, 28102480944522059434, 1262906802939553227382, 60182948301301262753877 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = Sum_{k=1..n} 2 * k * sigma_{n-1}(k) - sigma_{n}(k).
a(n) ~ n^n / (1 - exp(-1)). - Vaclav Kotesovec, Dec 16 2021
MATHEMATICA
Table[Sum[k^n Floor[n/k]^2, {k, n}], {n, 20}] (* Harvey P. Dale, Feb 11 2022 *)
PROG
(PARI) a(n) = sum(k=1, n, k^n*(n\k)^2);
(PARI) a(n) = sum(k=1, n, 2*k*sigma(k, n-1)-sigma(k, n));
(Python)
from math import isqrt
from sympy import bernoulli
def A350128(n): return (((s:=isqrt(n))+1)*(1-s)*(bernoulli(n+1, s+1)-(b:=bernoulli(n+1)))+sum(k**n*(n+1)*(((q:=n//k)+1)*(q-1))+(1-2*k)*(b-bernoulli(n+1, q+1)) for k in range(1, s+1)))//(n+1) # Chai Wah Wu, Oct 21 2023
CROSSREFS
Sequence in context: A210118 A112908 A264819 * A028565 A366338 A129553
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Dec 15 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 8 06:32 EDT 2024. Contains 372319 sequences. (Running on oeis4.)