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!)
A318742 a(n) = Sum_{k=1..n} floor(n/k)^3. 11
1, 9, 29, 74, 136, 254, 382, 596, 833, 1173, 1505, 2057, 2527, 3209, 3921, 4856, 5674, 6928, 7956, 9474, 10882, 12608, 14128, 16506, 18369, 20797, 23141, 26129, 28567, 32259, 35051, 38963, 42483, 46675, 50435, 55904, 59902, 65156, 70092, 76460 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A006218(n) - 3*A024916(n) + 3*A064602(n).
a(n) ~ zeta(3) * n^3.
G.f.: (1/(1 - x)) * Sum_{k>=1} (3*k*(k - 1) + 1) * x^k/(1 - x^k). - Ilya Gutkovskiy, Jul 16 2019
MATHEMATICA
Table[Sum[Floor[n/k]^3, {k, 1, n}], {n, 1, 40}]
Accumulate[Table[DivisorSigma[0, k] - 3*DivisorSigma[1, k] + 3*DivisorSigma[2, k], {k, 1, 40}]]
PROG
(PARI) a(n) = sum(k=1, n, (n\k)^3); \\ Michel Marcus, Sep 03 2018
(Magma) [&+[Floor(n/k)^3:k in [1..n]]: n in [1..40]]; // Marius A. Burtea, Jul 16 2019
(Python)
from math import isqrt
def A318742(n): return -(s:=isqrt(n))**4 + sum((q:=n//k)*(3*k*(k-1)+q**2+1) for k in range(1, s+1)) # Chai Wah Wu, Oct 21 2023
CROSSREFS
Sequence in context: A273297 A273268 A273306 * A024922 A193004 A198645
KEYWORD
nonn
AUTHOR
Vaclav Kotesovec, Sep 02 2018
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 April 19 21:09 EDT 2024. Contains 371798 sequences. (Running on oeis4.)