cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

Showing 1-4 of 4 results.

A045991 a(n) = n^3 - n^2.

Original entry on oeis.org

0, 0, 4, 18, 48, 100, 180, 294, 448, 648, 900, 1210, 1584, 2028, 2548, 3150, 3840, 4624, 5508, 6498, 7600, 8820, 10164, 11638, 13248, 15000, 16900, 18954, 21168, 23548, 26100, 28830, 31744, 34848, 38148, 41650, 45360, 49284, 53428, 57798, 62400, 67240, 72324
Offset: 0

Views

Author

Keywords

Comments

Number of edges in the line graph of the complete bipartite graph of order 2n, L(K_n,n). - Roberto E. Martinez II, Jan 07 2002
Number of edges of the Cartesian product of two complete graphs K_n X K_n. - Roberto E. Martinez II, Jan 07 2002
That is, number of edges in the n X n rook graph. - Eric W. Weisstein, Jun 20 2017
n such that x^3 + x^2 + n factors over the integers. - James R. Buddenhagen, Apr 19 2005
Also the number of triangles in a 2 X n grid of points and therefore also (n choose 2) * (n choose 1) * 2, or (2n choose 3) - 2*(n choose 3). - Joshua Zucker, Jan 11 2006
Nonnegative X values of solutions to the equation (X-Y)^3-XY=0. To find Y values: b(n)=(n+1)*n^2 (see A011379). I proved that, if(X,Y) is different from (0,0) and m=2, 4, 6, 8, 10, 12,..., then the equation (X-Y)^m-XY=0,... has no solution. - Mohamed Bouhamida, May 10 2006
For n>=1, a(n) is equal to the number of functions f:{1,2,3}->{1,2,...,n} such that for a fixed x in {1,2,3} and a fixed y in {1,2,...,n} we have f(x)<>y. - Aleksandar M. Janjic and Milan Janjic, Mar 13 2007
a(n) equals the coefficient of log(2) in 2F1(n-1,n-1,n+1,-1). - John M. Campbell, Jul 16 2011
Define the infinite square array m(n,k) = (n-k)^2 for 1<=k<=n below the diagonal and m(n,k) = (k+n)(k-n) for 1<=n<=k above the diagonal. Then a(n) = Sum_{k=1..n} m(n,k) + Sum_{r=1..n} m(r,n), the "hook sum" of the terms left from m(n,n) and above m(n,n). - J. M. Bergot, Aug 16 2013
Partial sums of A049451. - Bruno Berselli, Feb 10 2014
Volume of an extruded rectangular brick with side lengths n, n and n-1. - Luciano Ancora, Jun 24 2015

Crossrefs

Cf. A011379, A047929, A114364 (essentially the same).

Programs

Formula

G.f.: 2*x^2*(x+2)/(-1+x)^4 = 6/(-1+x)^4+10/(-1+x)^2+14/(-1+x)^3+2/(-1+x). - R. J. Mathar, Nov 19 2007
a(n) = floor(n^5/(n^2+n+1)). - Gary Detlefs, Feb 10 2010
a(n) = 4*binomial(n,2) + 6*binomial(n,3). - Gary Detlefs, Mar 25 2012
a(n+1) = 2*A006002(n). - R. J. Mathar, Oct 31 2012
a(n) = (A000217(n-1)+A000217(n))*(A000217(n-1)-A000217(n-2)). - J. M. Bergot, Oct 31 2012
From Wesley Ivan Hurt, May 19 2015: (Start)
a(n) = 4*a(n-1)-6*a(n-2)+4*a(n-3)-a(n-4).
a(n) = Sum_{k=0..n-1} Sum_{i=n-k-1..n+k-1} i. (End)
Sum_{n>=2} 1/a(n) = 2 - Pi^2/6. - Daniel Suteu, Feb 06 2017
Sum_{n>=2} (-1)^n/a(n) = Pi^2/12 + 2*log(2) - 2. - Amiram Eldar, Jul 05 2020
E.g.f.: exp(x)*x^2*(2 + x). - Stefano Spezia, May 20 2021
Product_{n>=2} (1 - 1/a(n)) = A146485. - Amiram Eldar, Nov 22 2022
From J.S. Seneschal, Jun 21 2024: (Start)
a(n) = (n-1)*A000290(n).
a(n) = n*A002378(n-1).
a(n) = A011379(n) - A001105(n). (End)

A011379 a(n) = n^2*(n+1).

Original entry on oeis.org

0, 2, 12, 36, 80, 150, 252, 392, 576, 810, 1100, 1452, 1872, 2366, 2940, 3600, 4352, 5202, 6156, 7220, 8400, 9702, 11132, 12696, 14400, 16250, 18252, 20412, 22736, 25230, 27900, 30752, 33792, 37026, 40460, 44100, 47952, 52022, 56316, 60840
Offset: 0

Views

Author

Glen Burch (gburch(AT)erols.com), Felice Russo

Keywords

Comments

(1) a(n) = sum of second string of n triangular numbers - sum of first n triangular numbers, or the 2n-th partial sum of triangular numbers (A000217) - the n-th partial sum of triangular numbers (A000217). The same for natural numbers gives squares. (2) a(n) = (n-th triangular number)*(the n-th even number) = n(n+1)/2 * (2n). - Amarnath Murthy, Nov 05 2002
Let M(n) be the n X n matrix m(i,j)=1/(i+j+x), let P(n,x) = (Product_{i=0..n-1} i!^2)/det(M(n)). Then P(n,x) is a polynomial with integer coefficients of degree n^2 and a(n) is the coefficient of x^(n^2-1). - Benoit Cloitre, Jan 15 2003
Y values of solutions of the equation: (X-Y)^3-X*Y=0. X values are a(n)=n*(n+1)^2 (see A045991) - Mohamed Bouhamida, May 09 2006
a(2d-1) is the number of self-avoiding walk of length 3 in the d-dimensional hypercubic lattice. - Michael Somos, Sep 06 2006
a(n) mod 10 is periodic 5: repeat [0, 2, 2, 6, 0]. - Mohamed Bouhamida, Sep 05 2009
This sequence is related to A005449 by a(n) = n*A005449(n)-sum(A005449(i), i=0..n-1), and this is the case d=3 in the identity n^2*(d*n+d-2)/2 - Sum_{k=0..n-1} k*(d*k+d-2)/2 = n*(n+d)*(2*d*n+d-3)/6. - Bruno Berselli, Nov 18 2010
Using (n, n+1) to generate a primitive Pythagorean triangle, the sides will be 2*n+1, 2*(n^2+n), and 2*n^2+2*n+1. Inscribing the largest rectangle with integral sides will have sides of length n and n^2+n. Side n is collinear to side 2*n+1 of the triangle and side n^2+n is collinear to side 2*(n^2+n) of the triangle. The areas of theses rectangles are a(n). - J. M. Bergot, Sep 22 2011
a(n+1) is the sum of n-th row of the triangle in A195437. - Reinhard Zumkeller, Nov 23 2011
Partial sums of A049450. - Omar E. Pol, Jan 12 2013
From Jon Perry, May 11 2013: (Start)
Define a 'stable brick triangle' as:
-----
| c |
---------
| a | | b |
----------
with a, b, c > 0 and c <= a + b. This can be visualized as two bricks with a third brick on top. The third brick can only be as strong as a+b, otherwise the wall collapses - for example, (1,2,4) is unstable.
a(n) gives the number of stable brick triangles that can be formed if the two supporting bricks are 1 <= a <= n and 1 <= b <= n: a(n) = Sum_{a=1..n} Sum_{b=1..n} Sum_c 1 = n^3 + n^2 as given in the Adamchuk formula.
So for i=j=n=2 we have 4:
1 2 3 4
2 2 2 2 2 2 2 2
For example, n=2 gives 2 from [a=1,b=1], 3 from both [a=1,b=2] and [a=2,b=1] and 4 from [a=2,b=2] so a(2) = 2 + 3 + 3 + 4 = 12. (End)
Define the infinite square array m(n,k) by m(n,k) = (n-k)^2 if n >= k >= 0 and by m(n,k) = (k+n)*(k-n) if 0 <= n <= k. This contains A120070 below the diagonal. Then a(n) = Sum_{k=0..n} m(n,k) + Sum_{r=0..n} m(r,n), the "hook sum" of the terms to the left of m(n,n) and above m(n,n) with irrelevant (vanishing) terms on the diagonal. - J. M. Bergot, Aug 16 2013
a(n) is the sum of all pairs with repetition drawn from the set of odd numbers 2*n-3. This is similar to A027480 but using the odd integers instead. Example using n=3 gives the odd numbers 1,3,5: 1+1, 1+3, 1+5, 3+3, 3+5,5+5 having a total of 36=a(3). - J. M. Bergot, Apr 05 2016
a(n) is the first Zagreb index of the complete graph K[n+1]. The first Zagreb index of a simple connected graph is the sum of the squared degrees of its vertices. Alternately, it is the sum of the degree sums d(i)+d(j) over all edges ij of the graph. - Emeric Deutsch, Nov 07 2016
a(n-2) is the maximum sigma irregularity over all trees with n vertices. The extremal graphs are stars. (The sigma irregularity of a graph is the sum of squares of the differences between the degrees over all edges of the graph.) - Allan Bickle, Jun 14 2023

Examples

			a(3) = 3^2+3^3 = 36.
		

References

  • L. B. W. Jolley, "Summation of Series", Dover Publications, 1961, pp. 50, 64.

Crossrefs

Cf. A011379, A181617, A270205 (sigma irregularities of maximal k-degenerate graphs).

Programs

Formula

a(n) = 2*A002411(n).
a(n) = Sum_{j=1..n} (Sum_{i=1..n} (i+j)), row sums of A126890 skipping numbers in the first column. - Alexander Adamchuk, Oct 12 2004
Sum_{n>0} 1/a(n) = (Pi^2 - 6)/6 = 0.6449340... [Jolley eq 272] - Gary W. Adamson, Dec 22 2006
a(n) = 2*n*binomial(n+1,2) = 2*n*A000217(n). - Arkadiusz Wesolowski, Feb 10 2012
G.f.: 2*x*(1 + 2*x)/(1 - x)^4. - Arkadiusz Wesolowski, Feb 11 2012
a(n) = A000330(n) + A002412(n) = A000292(n) + A002413(n). - Omar E. Pol, Jan 11 2013
a(n) = A245334(n+1,2), n > 0. - Reinhard Zumkeller, Aug 31 2014
Sum_{n>=1} 1/a(n) = A013661-1. - R. J. Mathar, Oct 18 2019 [corrected by Jason Yuen, Aug 04 2024]
Sum_{n>=1} (-1)^(n+1)/a(n) = 1 + Pi^2/12 - 2*log(2). - Amiram Eldar, Jul 04 2020
E.g.f.: exp(x)*x*(2 + 4*x + x^2). - Stefano Spezia, May 20 2021
a(n) = n*A002378(n) = A000578(n) + A000290(n). - J.S. Seneschal, Jun 18 2024

A028724 a(n) = (1/2)*floor(n/2)*floor((n-1)/2)*floor((n-2)/2).

Original entry on oeis.org

0, 0, 0, 0, 1, 2, 6, 9, 18, 24, 40, 50, 75, 90, 126, 147, 196, 224, 288, 324, 405, 450, 550, 605, 726, 792, 936, 1014, 1183, 1274, 1470, 1575, 1800, 1920, 2176, 2312, 2601, 2754, 3078, 3249, 3610, 3800, 4200, 4410, 4851, 5082, 5566, 5819, 6348, 6624, 7200
Offset: 0

Views

Author

Keywords

Comments

Number of symmetric Dyck paths of semilength n and having four peaks. E.g., a(5)=2 because we have UU*DU*DU*DU*DD and U*DUU*DU*DDU*D, where U=(1,1), D=(1,-1) and * indicates peaks. - Emeric Deutsch, Jan 12 2004
Starting with "1" = triangle A171608 * the triangular numbers. - Gary W. Adamson, Dec 12 2009
Integer solutions of (x + y)^3 = (x - y)^2. If x = a(2*n + 2) then y = -a(2*n + 1). y and x may be interchanged. - Thomas Scheuerle, Mar 22 2023
2*a(n+3) interleaves the positive integers of A011379 and A045991. - J.S. Seneschal, Mar 31 2025

Examples

			a(7) = 9 since the 9 tuples [x, y, z, w] in {[4, 3, 2, 2] [4, 3, 3, 2] [4, 3, 3, 3] [4, 3, 4, 2] [4, 3, 4, 3] [5, 2, 2, 2] [5, 2, 3, 2] [5, 2, 4, 2] [5, 2, 5, 2]} are all the solutions of 7 = x + y, x >= max(y, z), min(y, z) >= w >= 2.
		

References

  • P. A. MacMahon, Combinatory Analysis, Cambridge Univ. Press, London and New York, Vol. 1, 1915 and Vol. 2, 1916; see vol. 2, p 185, Article 433.

Crossrefs

Programs

  • Magma
    [((-1)^n*(3 -3*n +n^2) -(3 -11*n +9*n^2 -2*n^3))/32: n in [0..60]]; // G. C. Greubel, Apr 08 2022
    
  • Maple
    A028724:=n->(1/2)*floor(n/2)*floor((n-1)/2)*floor((n-2)/2);
    seq(A028724(k), k=0..100); # Wesley Ivan Hurt, Nov 01 2013
  • Mathematica
    Table[(1/2)*Floor[n/2]*Floor[(n-1)/2]*Floor[(n-2)/2], {n,0,100}] (* Wesley Ivan Hurt, Nov 01 2013 *)
    Table[(11n-3-9n^2+2n^3+(-1)^n(3-3n+n^2))/32,{n,0,60}] (* Benedict W. J. Irwin, Sep 27 2016 *)
    CoefficientList[Series[x^4 (1 + x + x^2)/(x - 1)^4/(x + 1)^3, {x, 0, 60}], x] (* Michael De Vlieger, Sep 27 2016 *)
  • PARI
    {a(n) = (n\2) * ((n-1)\2) * (n\2-1) / 2} /* Michael Somos, Jan 27 2008 */
    
  • PARI
    {a(n) = if( n<0, n=-1-n; -1, n-=4; 1) * polcoeff( (1 - x^3) / (1 - x)^2 / (1 - x^2)^3 + x*O(x^n), n)} /* Michael Somos, Jan 27 2008 */
    
  • PARI
    first(n) = Vec(x^4*(1+x+x^2)/(x-1)^4/(x+1)^3 + O(x^(n)), -n) \\ Iain Fox, Nov 18 2017
    
  • SageMath
    [(1/2)*(n//2)*((n-1)//2)*((n-2)//2) for n in (0..60)] # G. C. Greubel, Apr 08 2022

Formula

G.f.: x^4*(1+x+x^2)/((1-x)^4*(1+x)^3). - Ralf Stephan, Jun 22 2003
Number of tuples [x, y, z, w] of integers such that n = x + y, x >= max(y, z), min(y, z) >= w >= 2. - Michael Somos, Jan 27 2008
Euler transform of length 3 sequence [2, 3, -1]. - Michael Somos, Jan 27 2008
a(3-n) = -a(n). - Michael Somos, Jan 27 2008
a(n) = (-3 + 11*n - 9*n^2 + 2*n^3 + (-1)^n*(3 - 3*n + n^2))/32. - Benedict W. J. Irwin, Sep 27 2016
a(n) = Sum_{i=1..floor((n-1)/2)} i * ( floor((n-1)/2) mod (n-i-1) ). - Wesley Ivan Hurt, Nov 17 2017
E.g.f.: (1/32)*( (3 + 2*x + x^2)*exp(-x) - (1-x)*(3 - x + 2*x^2)*exp(x) ). - G. C. Greubel, Apr 08 2022
From Amiram Eldar, Apr 16 2023: (Start)
Sum_{n>=4} 1/a(n) = 2.
Sum_{n>=4} (-1)^n/a(n) = 2*Pi^2/3 - 6. (End)

A052290 Prime values of n!*2^n+n+1 = A000165(n)+n+1.

Original entry on oeis.org

2, 11, 389, 1961990553613, 1678343852714360832019, 25563186766285862273530264901662157745369907200000037
Offset: 1

Views

Author

Labos Elemer, Feb 08 2000

Keywords

Comments

For a(6), n = 36. There are no additional terms up to n=1000. - Harvey P. Dale, Aug 06 2012
Primes for n = 0, 2, 4, 12, 18, 36, and no others for n < 5001. - Robert G. Wilson v, Aug 07 2012

Examples

			If n=4, 2^4*4!+4+1 = 389 is prime, so 389 is a term.
		

Crossrefs

Programs

  • Mathematica
    Select[Table[n! 2^n+n+1,{n,0,1000}],PrimeQ] (* Harvey P. Dale, Aug 06 2012 *)
Showing 1-4 of 4 results.