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!)
A350222 a(n) = Sum_{k=1..n} (-1)^(k+1) * floor((n/k)^3). 3
1, 7, 25, 57, 114, 194, 310, 460, 658, 902, 1200, 1557, 1981, 2474, 3045, 3690, 4431, 5257, 6186, 7212, 8350, 9601, 10969, 12461, 14088, 15844, 17746, 19791, 21990, 24343, 26859, 29539, 32399, 35434, 38655, 42060, 45671, 49468, 53480, 57698, 62137, 66793, 71681 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = A309082(n^3).
MATHEMATICA
a[n_] := Sum[(-1)^(k + 1)*Floor[(n/k)^3], {k, 1, n}]; Array[a, 50] (* Amiram Eldar, Dec 20 2021 *)
PROG
(PARI) a(n) = sum(k=1, n, (-1)^(k+1)*(n^3\k^3));
(Python)
def A350222(n): return (m:=n**3)+sum(m//k**3 if k&1 else -(m//k**3) for k in range(2, n+1)) # Chai Wah Wu, Oct 27 2023
CROSSREFS
Sequence in context: A155261 A365444 A268239 * A110672 A213481 A266709
KEYWORD
nonn
AUTHOR
Seiichi Manyama, Dec 20 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 April 19 15:11 EDT 2024. Contains 371794 sequences. (Running on oeis4.)