login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A330520 Sum of even integers <= n times the sum of odd integers <= n. 1
0, 0, 2, 8, 24, 54, 108, 192, 320, 500, 750, 1080, 1512, 2058, 2744, 3584, 4608, 5832, 7290, 9000, 11000, 13310, 15972, 19008, 22464, 26364, 30758, 35672, 41160, 47250, 54000, 61440, 69632, 78608, 88434, 99144, 110808, 123462, 137180, 152000, 168000, 185220, 203742, 223608, 244904, 267674 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Number of crossings in a grid formed by drawing n parallel infinite-length lines perpendicular to the previous number of lines.

The sum of odd integers <= n is m^2 where m = round(n/2) is their number. The sum of even integers <= n is k(k+1) where k = floor(n/2) is their number. So a(n) = m^2*k(k+1), where the factor m appears three times. - M. F. Hasler, Dec 19 2019

LINKS

Table of n, a(n) for n=0..45.

FORMULA

G.f.: 2*(x^2+x+1)*x^2/((x+1)^2*(1-x)^5).

a(n) = 2 * A007009(n-1) for n>1.

a(2k+i) = (k+i)^3 (k+1-i), with i = 0 or 1. - M. F. Hasler, Dec 19 2019

a(n) = A002378(floor(n/2)) * A000290(ceiling(n/2)). - Bernard Schott, Dec 22 2019

MATHEMATICA

CoefficientList[Series[2 (x^2 + x + 1) x^2/((x + 1)^2*(1 - x)^5), {x, 0, 45}], x] (* Michael De Vlieger, Dec 22 2019 *)

PROG

(PARI) apply( A330520(n)=n\2*(n\2+1)*(n\/2)^2, [0..99]) \\ M. F. Hasler, Dec 19 2019

CROSSREFS

Cf. A179824, A085537, A007009, A002620.

Cf. A000290 (sum of odd integers), A002378 (sum of even integers).

Sequence in context: A084744 A122547 A152132 * A009059 A009297 A235793

Adjacent sequences:  A330517 A330518 A330519 * A330521 A330522 A330523

KEYWORD

nonn,easy

AUTHOR

J. Stauduhar, Dec 17 2019

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 14:27 EDT 2020. Contains 336323 sequences. (Running on oeis4.)