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-5 of 5 results.

A006002 a(n) = n*(n+1)^2/2.

Original entry on oeis.org

0, 2, 9, 24, 50, 90, 147, 224, 324, 450, 605, 792, 1014, 1274, 1575, 1920, 2312, 2754, 3249, 3800, 4410, 5082, 5819, 6624, 7500, 8450, 9477, 10584, 11774, 13050, 14415, 15872, 17424, 19074, 20825, 22680, 24642, 26714, 28899, 31200, 33620, 36162, 38829, 41624
Offset: 0

Views

Author

Keywords

Comments

a(n) is the largest number that is not the sum of distinct numbers of form kn+1, k >= 0. - David W. Wilson, Dec 11 1999
Sum of the nontriangular numbers between successive triangular numbers. 1, (2), 3, (4, 5), 6, (7, 8, 9), 10, (11, 12, 13, 14), 15, ... Sum of the terms in brackets. Or sum of n consecutive integers beginning with T(n) + 1, where T(n) = n(n+1)/2. - Amarnath Murthy, Aug 27 2005
Apparently this is also the splittance (as defined by Hammer & Simeone, 1977) of the Kneser graphs of the form K(n+3,2). - Felix Goldberg (felixg(AT)tx.technion.ac.il), Jul 13 2009
Row sums of triangle A159797. - Omar E. Pol, Jul 24 2009
The same results occur when one plots the points (1,3), (3,6), (6,10), (10,15), and so on, for all the triangular numbers and finds the area beneath. Take three consecutive triangular numbers and label them a, b, c; the area created is simply (b-a)*(b+c)/2. Thus for 6,10,15 the area beneath the line defined by the points (6,10) and (10,15) is (10-6)*(10+15)/2 = 50. - J. M. Bergot, Jun 28 2011
Let P = ab where a and b are nonequal prime numbers > 1. Let Q be the product of all divisors of P^n. Q can be expressed as P^k, where k = n*(n+1)^2/2. This follows from the fact that all divisors are of the form a^i*b^j, for i,j from 0 to n. An example is given below. In the more general case, where P is the product of m nonequal prime numbers, k = n*(n+1)^m/2. When m=3, the sequence is the same as A092364. - James A. Raymond & Douglas Raymond, Dec 04 2011
For n > 0: sum of n-th row in A014132, seen as a triangle read by rows. - Reinhard Zumkeller, Dec 12 2012
Partial sums of A005449. - Omar E. Pol, Jan 12 2013
a(n) is the sum of x (or y) coordinates for an n X n square lattice in the upper right quadrant of Z^2 whose corner points are (0, 0), (0, n), (n, 0), and (n, n). - Joseph Wheat, Feb 03 2018
a(n) is the number of permutations of [n+2] that contain exactly 2 elements which are not left-to-right minimal. E.g., the 9 permutations comprising a(2) are 2134, 2143, 3124, 3142, 4123, 4132, 2314, 2413, 3412. - Andy Niedermaier, May 07 2022

Examples

			Let P^n=6^2. The product of the divisors of 36 = 10077796 = 6^9, i.e., for n=2, k=9. - _James A. Raymond_ & Douglas Raymond, Dec 04 2011
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Cf. A002411: -a(-1-n).
Cf. A000914 (partial sums), A005449 (first differences).
Cf. similar sequences of the type n*(n+1)*(n+k)/2 listed in A267370.
A bisection of A330298.

Programs

Formula

G.f.: x*(x + 2)/(1 - x)^4. - Michael Somos, Jan 30 2004
a(n) = (n + 1) * binomial(n+1, 2). - Zerinvary Lajos, Jan 10 2006
a(n) = A035006(n+1)/4. - Johannes W. Meijer, Feb 04 2010
a(n) = 2*binomial(n+1, 2) + 3*binomial(n+1, 3). - Gary Detlefs, Jun 06 2010
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). - Harvey P. Dale, Aug 14 2012
a(n) = A000292(n) + A000330(n). - Omar E. Pol, Jan 11 2013
a(n) = A045991(n+1)/2. - J. M. Bergot, Aug 10 2013
a(n) = Sum_{j=1..n} Sum_{i=1..j} (2*j - i + 1). - Wesley Ivan Hurt, Nov 17 2014
a(n) = Sum_{i=0..n} n*(n - i) + i. - Bruno Berselli, Jan 13 2016
a(n) = t(n, A000217(n)), where t(h,k) = A000217(h) + h*k. - Bruno Berselli, Feb 28 2017
Sum_{n>0} 1/a(n) = 4 - Pi^2/3. - Jaume Oliver Lafont, Jul 11 2017 [corrected by Amiram Eldar, Jan 28 2022]
E.g.f.: exp(x)*x*(4 + 5*x + x^2)/2. - Stefano Spezia, May 21 2021
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi^2/6 + 4*log(2) - 4. - Amiram Eldar, Jan 28 2022
From J.S. Seneschal, Jun 27 2024: (Start)
a(n) = (A002378(n)^2/2)/n = (n+1)/2 * A002378(n).
a(n) = A027480(n) - A000217(n). (End)

A027480 a(n) = n*(n+1)*(n+2)/2.

Original entry on oeis.org

0, 3, 12, 30, 60, 105, 168, 252, 360, 495, 660, 858, 1092, 1365, 1680, 2040, 2448, 2907, 3420, 3990, 4620, 5313, 6072, 6900, 7800, 8775, 9828, 10962, 12180, 13485, 14880, 16368, 17952, 19635, 21420, 23310, 25308, 27417, 29640, 31980, 34440
Offset: 0

Views

Author

Olivier Gérard and Ken Knowlton (kcknowlton(AT)aol.com)

Keywords

Comments

Write the integers in groups: 0; 1,2; 3,4,5; 6,7,8,9; ... and add the groups: a(n) = Sum_{j=0..n} (A000217(n)+j), row sums of the triangular view of A001477. - Asher Auel, Jan 06 2000
With offset = 2, a(n) is the number of edges of the line graph of the complete graph of order n, L(K_n). - Roberto E. Martinez II, Jan 07 2002
Also the total number of pips on a set of dominoes of type n. (A "3" domino set would have 0-0, 0-1, 0-2, 0-3, 1-1, 1-2, 1-3, 2-2, 2-3, 3-3.) - Gerard Schildberger, Jun 26 2003. See A129533 for generalization to n-armed "dominoes". - N. J. A. Sloane, Jan 06 2016
Common sum in an (n+1) X (n+1) magic square with entries (0..n^2-1).
Alternate terms of A057587. - Jeremy Gardiner, Apr 10 2005
If Y is a 3-subset of an n-set X then, for n >= 5, a(n-5) is the number of 4-subsets of X which have exactly one element in common with Y. Also, if Y is a 3-subset of an n-set X then, for n >= 5, a(n-5) is the number of (n-5)-subsets of X which have exactly one element in common with Y. - Milan Janjic, Dec 28 2007
These numbers, starting with 3, are the denominators of the power series f(x) = (1-x)^2 * log(1/(1-x)), if the numerators are kept at 1. This sequence of denominators starts at the term x^3/3. - Miklos Bona, Feb 18 2009
a(n) is the number of triples (w,x,y) having all terms in {0..n} and satisfying at least one of the inequalities x+y < w, y+w < x, w+x < y. - Clark Kimberling, Jun 14 2012
From Martin Licht, Dec 04 2016: (Start)
Let b(n) = (n+1)(n+2)(n+3)/2 (the same sequence, but with a different offset). Then (see Arnold et al., 2006):
b(n) is the dimension of the Nédélec space of the second kind of polynomials of order n over a tetrahedron.
b(n-1) is the dimension of the curl-conforming Nédélec space of the first kind of polynomials of order n with tangential boundary conditions over a tetrahedron.
b(n) is the dimension of the divergence-conforming Nédélec space of the first kind of polynomials of order n with normal boundary conditions over a tetrahedron. (End)
After a(0), the digital root has period 9: repeat [3, 3, 3, 6, 6, 6, 9, 9, 9]. - Peter M. Chema, Jan 19 2017

Examples

			Row sums of n consecutive integers, starting at 0, seen as a triangle:
.
    0 |  0
    3 |  1  2
   12 |  3  4  5
   30 |  6  7  8  9
   60 | 10 11 12 13 14
  105 | 15 16 17 18 19 20
		

Crossrefs

1/beta(n, 3) in A061928.
A row of array in A129533.
Cf. similar sequences of the type n*(n+1)*(n+k)/2 listed in A267370.
Similar sequences are listed in A316224.
Third column of A003506.
A bisection of A330298.

Programs

  • Magma
    [n*(n+1)*(n+2)/2: n in [0..40]]; // Vincenzo Librandi, Nov 14 2014
    
  • Maple
    [seq(3*binomial(n+2,3),n=0..37)]; # Zerinvary Lajos, Nov 24 2006
    a := n -> add((j+n)*(n+2)/3,j=0..n): seq(a(n),n=0..35); # Zerinvary Lajos, Dec 17 2006
  • Mathematica
    Table[(m^3 - m)/2, {m, 36}] (* Zerinvary Lajos, Mar 21 2007 *)
    LinearRecurrence[{4,-6,4,-1},{0,3,12,30},40] (* Harvey P. Dale, Oct 10 2012 *)
    CoefficientList[Series[3 x / (x - 1)^4, {x, 0, 40}], x] (* Vincenzo Librandi, Nov 14 2014 *)
    With[{nn=50},Total/@TakeList[Range[0,(nn(nn+1))/2-1],Range[nn]]] (* Requires Mathematica version 11 or later *) (* Harvey P. Dale, Jun 02 2019 *)
  • PARI
    a(n)=3*binomial(n+2,3) \\ Charles R Greathouse IV, May 23 2011
    
  • Python
    def a(n): return (n**3+3*n**2+2*n)//2 # _Torlach Rush, Jun 16 2024

Formula

a(n) = a(n-1) + A050534(n) = 3*A000292(n-1) = A050534(n) - A050534(n-1).
a(n) = n*binomial(2+n, 2). - Zerinvary Lajos, Jan 10 2006
a(n) = A007531(n+2)/2. - Zerinvary Lajos, Jul 17 2006
Starting with offset 1 = binomial transform of [3, 9, 9, 3, 0, 0, 0]. - Gary W. Adamson, Oct 25 2007
From R. J. Mathar, Apr 07 2009: (Start)
G.f.: 3*x/(x-1)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4). (End)
a(n) = Sum_{i=0..n} n*(n - i) + 2*i. - Bruno Berselli, Jan 13 2016
From Ilya Gutkovskiy, Aug 07 2016: (Start)
E.g.f.: x*(6 + 6*x + x^2)*exp(x)/2.
a(n) = Sum_{k=0..n} A045943(k).
Sum_{n>=1} 1/a(n) = 1/2.
Sum_{n>=1} (-1)^(n+1)/a(n) = (8*log(2) - 5)/2 = 0.2725887222397812... = A016639/10. (End)
a(n-1) = binomial(n^2,2)/n for n > 0. - Jonathan Sondow, Jan 07 2018
For k > 1, Sum_{i=0..n^2-1} (k+i)^2 = (k*n + a(k-1))^2 + A126275(k). - Charlie Marion, Apr 23 2021

A077414 a(n) = n*(n - 1)*(n + 2)/2.

Original entry on oeis.org

0, 4, 15, 36, 70, 120, 189, 280, 396, 540, 715, 924, 1170, 1456, 1785, 2160, 2584, 3060, 3591, 4180, 4830, 5544, 6325, 7176, 8100, 9100, 10179, 11340, 12586, 13920, 15345, 16864, 18480, 20196, 22015, 23940, 25974, 28120, 30381, 32760, 35260
Offset: 1

Views

Author

Wolfdieter Lang, Nov 29 2002

Keywords

Comments

Number of independent components of a certain 3-tensor in n-space.
a(n) is the number of independent components of a 3-tensor t(a,b,c) which satisfies t(a,b,c) = t(b,a,c) and Sum_{a=1..n} t(a,a,c) = 0 for all c, with a,b,c range 1..n. (3-tensor in n-dimensional space which is symmetric and traceless in one pair of its indices.)
Row 2 of the convolution array A213761. - Clark Kimberling, Jul 04 2012
Also, the number of ways to place two dominoes horizontally in the same row on an (n+2) X (n+2) chessboard. - Ralf Stephan, Jun 09 2014
Also, the sum of all the numbers in a completely filled n X n tic-tac-toe board with n-1 players using the numbers 0, 1, 2,... n-2. See "Sums of Square Tic Tac Toe Boards that end in a Draw" in links for proof. - Tanner Robeson, Aug 23 2020
a(n) is the number of degrees of freedom in a tetrahedral cell for a Raviart-Thomas finite element space of order n. - Matthew Scroggs, Jan 02 2021

Examples

			For n=6, a(6) = 1*(3*5+1)+2*(3*4+1)+3*(3*3+1)+4*(3*2+1)+5*(3*1+1) = 120. - _Bruno Berselli_, Feb 13 2014
G.f. = 4*x^2 + 15*x^3 + 36*x^4 + 70*x^5 + 120*x^6 + 189*x^7 + 280*x^8 + ...
		

Crossrefs

Cf. A000096, A005564, A057145, A115067 (first differences), A213761.
Cf. similar sequences of the type m*(m+1)*(m+k)/2 listed in A267370.

Programs

  • Magma
    [n*(n-1)*(n+2)/2: n in [1..30]]; // G. C. Greubel, Jan 18 2018
  • Maple
    A077414:=n->n*(n-1)*(n+2)/2: seq(A077414(n), n=1..60); # Wesley Ivan Hurt, Apr 09 2017
  • Mathematica
    Table[(n (n - 1) (n + 2))/2, {n, 50}] (* or *) LinearRecurrence[{4, -6, 4, -1}, {0, 4, 15, 36}, 50] (* Harvey P. Dale, Jun 04 2012 *)
    CoefficientList[Series[x (4 - x)/(1 - x)^4, {x, 0, 40}], x] (* Vincenzo Librandi, Feb 14 2014 *)
  • PARI
    a(n)=n*(n-1)*(n+2)/2 \\ Charles R Greathouse IV, Oct 07 2015
    
  • PARI
    concat(0, Vec(x^2*(4-x)/(1-x)^4 + O(x^200))) \\ Altug Alkan, Jan 15 2016
    

Formula

a(n) = n * ( binomial(n+1, 2)-1 ).
G.f.: x^2*(4-x)/(1-x)^4.
a(n) = n*Sum_{j=2..n} j. - Zerinvary Lajos, Sep 12 2006
a(1)=0, a(2)=4, a(3)=15, a(4)=36; for n>4, a(n) = 4*a(n-1)-6*a(n-2)+4*a(n-3)-a(n-4). - Harvey P. Dale, Jun 04 2012
a(n) = Sum_{i=1..n-1} i*(3*(n-i)+1). - Bruno Berselli, Feb 13 2014
a(-n) = -A005564(n). - Michael Somos, Jun 09 2014
a(n) = A057145(n,n+2). - R. J. Mathar, Jul 28 2016
a(n) = t(n,t(n,1)) + n, where t(n,k) = n*(n+1)/2 + k*n and t(n,1) = A000096(n). - Bruno Berselli, Feb 28 2017
a(n) = n^3/2 + n^2/2 - n. - Tanner Robeson, Aug 23 2020
Sum_{n>=2} 1/a(n) = 7/18. - Amiram Eldar, Oct 07 2020
Sum_{n>=2} (-1)^n/a(n) = 4*log(2)/3 - 13/18. - Amiram Eldar, Feb 22 2022
E.g.f.: exp(x)*x^2*(4 + x)/2. - Stefano Spezia, Jan 03 2023

A185874 Second accumulation array of A051340, by antidiagonals.

Original entry on oeis.org

1, 3, 4, 6, 11, 10, 10, 21, 26, 20, 15, 34, 48, 50, 35, 21, 50, 76, 90, 85, 56, 28, 69, 110, 140, 150, 133, 84, 36, 91, 150, 200, 230, 231, 196, 120, 45, 116, 196, 270, 325, 350, 336, 276, 165, 55, 144, 248, 350, 435, 490, 504, 468, 375, 220, 66, 175, 306, 440, 560, 651, 700, 696, 630, 495, 286, 78, 209, 370, 540, 700, 833, 924, 960, 930, 825, 638, 364, 91, 246, 440, 650, 855, 1036, 1176, 1260, 1275, 1210, 1056, 806, 455, 105, 286, 516, 770, 1025, 1260, 1456, 1596, 1665, 1650, 1540, 1326, 1001, 560
Offset: 1

Views

Author

Clark Kimberling, Feb 05 2011

Keywords

Comments

A member of the accumulation chain: A051340 < A141419 < A185874 < A185875 < A185876 < ... (See A144112 for the definition of accumulation array.)

Examples

			Northwest corner:
.   1,   3,   6,   10,   15,   21,   28,   36,   45,   55, ...
.   4,  11,  21,   34,   50,   69,   91,  116,  144,  175, ...
.  10,  26,  48,   76,  110,  150,  196,  248,  306,  370, ...
.  20,  50,  90,  140,  200,  270,  350,  440,  540,  650, ...
.  35,  85, 150,  230,  325,  435,  560,  700,  855, 1025, ...
.  56, 133, 231,  350,  490,  651,  833, 1036, 1260, 1505, ...
.  84, 196, 336,  504,  700,  924, 1176, 1456, 1764, 2100, ...
. 120, 276, 468,  696,  960, 1260, 1596, 1968, 2376, 2820, ...
. 165, 375, 630,  930, 1275, 1665, 2100, 2580, 3105, 3675, ...
. 220, 495, 825, 1210, 1650, 2145, 2695, 3300, 3960, 4675, ...
...
		

Crossrefs

Row 1 to 5: A000217, A115056, 2*A140096, 10*A000096, 5*A059845.
Column 1 to 3: A000292, A051925, A267370 and 3*A005581.
Main diagonal: A117066.

Programs

  • Mathematica
    f[n_, k_] := (1/12)*k*n*(1 + n)*(1 + 3*k + 2*n);
    TableForm[Table[f[n, k], {n, 1, 10}, {k, 1, 15}]]
    Table[f[n - k + 1, k], {n, 14}, {k, n, 1, -1}] // Flatten

Formula

T(n,k) = k*n*(n+1)*(2*n+3*k+1)/12 for k>=1, n>=1.

Extensions

Edited by Bruno Berselli, Jan 14 2016

A212343 a(n) = (n+1)*(n-2)*(n-3)/2.

Original entry on oeis.org

0, 0, 5, 18, 42, 80, 135, 210, 308, 432, 585, 770, 990, 1248, 1547, 1890, 2280, 2720, 3213, 3762, 4370, 5040, 5775, 6578, 7452, 8400, 9425, 10530, 11718, 12992, 14355, 15810, 17360, 19008, 20757, 22610, 24570, 26640, 28823, 31122, 33540, 36080, 38745, 41538, 44462, 47520, 50715, 54050, 57528
Offset: 2

Views

Author

N. J. A. Sloane, May 09 2012

Keywords

Comments

Sequence of coefficients of x^1 in marked mesh pattern generating function Q_{n,132}^(0,3,0,0)(x).
Is this row 2 of the convolution array A213819? - Clark Kimberling, Jul 04 2012

Crossrefs

Partial sums are in A241765.
Cf. similar sequences of the type m*(m+1)*(m+k)/2 listed in A267370.
Cf. also A212342.

Programs

  • Mathematica
    QQ0[t, x] = (1 - (1-4*x*t)^(1/2)) / (2*x*t); QQ1[t, x] = 1/(1 - t*QQ0[t, x]); QQ2[t, x] = (1 + t*(QQ1[t, x] - QQ0[t, x]))/(1 - t*QQ0[t, x]); QQ3[t, x] = (1 + t*(QQ2[t, x] - QQ0[t, x] + t*(QQ1[t, x] - QQ0[t,  x])))/(1 - t*QQ0[t, x]); CoefficientList[Coefficient[Simplify[Series[QQ3[t, x], {t, 0, 35}]],x],t]  (* Robert Price, Jun 04 2012 *)
    LinearRecurrence[{4,-6,4,-1},{0,0,5,18},60] (* Harvey P. Dale, Mar 15 2018 *)
  • PARI
    Vec(-x^4*(2*x-5)/(x-1)^4 + O(x^100)) \\ Colin Barker, Jul 10 2015

Formula

For n>=4, a(n) = (n-3)*A212342(n-1).
a(n) = 4*a(n-1)-6*a(n-2)+4*a(n-3)-a(n-4) for n>7. - Colin Barker, Jul 10 2015
G.f.: -x^4*(2*x-5) / (x-1)^4. - Colin Barker, Jul 10 2015
From Amiram Eldar, Apr 03 2022: (Start)
Sum_{n>=4} 1/a(n) = 23/72.
Sum_{n>=4} (-1)^n/a(n) = 4*log(2)/3 - 55/72. (End)

Extensions

a(10)-a(35) from Robert Price, Jun 02 2012
Entry revised by N. J. A. Sloane, Sep 10 2016
Showing 1-5 of 5 results.