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!)
A106845 n^2 * (n^3 + 2n^2 + 7n - 2) / 8. 0
0, 1, 14, 72, 244, 650, 1476, 2989, 5552, 9639, 15850, 24926, 37764, 55432, 79184, 110475, 150976, 202589, 267462, 348004, 446900, 567126, 711964, 885017, 1090224, 1331875, 1614626, 1943514, 2323972, 2761844, 3263400, 3835351, 4484864, 5219577, 6047614, 6977600 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
a(n) = Sum {1<=k,l,m<=n; k+l+m divisible by n} klm.
LINKS
FORMULA
G.f.: x*(x^4+2*x^3+3*x^2+8*x+1) / (x-1)^6. - Colin Barker, Jul 16 2013
PROG
(PARI) a(n)=if(n<1, 0, sum(k=1, n, sum(l=1, n, sum(m=1, n, if((k+l+m)%n==0, k*l*m))))) /* Michael Somos, May 16 2005 */
CROSSREFS
Sequence in context: A074086 A205335 A212750 * A365670 A205328 A328735
KEYWORD
nonn,easy
AUTHOR
Ralf Stephan, May 06 2005
EXTENSIONS
More terms from Colin Barker, Jul 16 2013
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.)