Svoboda | Graniru | BBC Russia | Golosameriki | Facebook
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!)
A078617 Floor(average of first n squares). 6
1, 2, 4, 7, 11, 15, 20, 25, 31, 38, 46, 54, 63, 72, 82, 93, 105, 117, 130, 143, 157, 172, 188, 204, 221, 238, 256, 275, 295, 315, 336, 357, 379, 402, 426, 450, 475, 500, 526, 553, 581, 609, 638, 667, 697, 728, 760, 792, 825, 858, 892, 927, 963, 999, 1036, 1073 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = floor((1/n)*(Sum_{i=1..n} i^2)) = floor( A000330(n)/n ).
a(n) = [(n + 1) * (2 * n + 1) / 6]. A171662(n) = a(-1 - n). - Michael Somos, Dec 14 2009
G.f.: -x*(1+x^3+x^4+x^2) / ( (1+x)*(1+x+x^2)*(x^2-x+1)*(x-1)^3 ). - R. J. Mathar, Feb 20 2011
a(n) = floor(n/(1-e^(-3/n))). Also see related exponential formula in A171662 with symmetry as above. - Richard R. Forberg, Jun 22 2013
EXAMPLE
a(4) = floor((1 + 4 + 9 + 16)/4) = 7.
MATHEMATICA
Table[Floor[Mean[Range[n]^2]], {n, 60}] (* Harvey P. Dale, Jun 19 2023 *)
PROG
(PARI) {a(n) = n++; (2 * n^2 - n) \ 6} /* Michael Somos, Dec 14 2009 */
CROSSREFS
Sequence in context: A194168 A347763 A198759 * A199085 A247184 A025703
KEYWORD
easy,nonn
AUTHOR
Joseph L. Pe, Dec 10 2002
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 September 11 17:54 EDT 2024. Contains 375839 sequences. (Running on oeis4.)