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.

A134152 Row sums of triangle A134151 and partition array A134150 (M3(4)/M3).

Original entry on oeis.org

1, 5, 33, 329, 4081, 64289, 1193697, 25959169, 641756673, 17842602561, 549786056897, 18611202710465, 686107435427009, 27365450091496641, 1173865020528758465, 53888878469193228993, 2635977957955398642369
Offset: 1

Views

Author

Wolfdieter Lang, Nov 13 2007

Keywords

Crossrefs

Cf. A000041, A134272 (alternating row sums of triangle A134151).

Formula

a(n) = Sum_{m=1..n} A134151(n,m), n>=1.
a(n) = Sum_{k=1..p(n)} A134150(n,k), with p(n) = A000041(n) (number of partitions of n).

A134272 Alternating row sums of triangle A134151.

Original entry on oeis.org

1, 3, 25, 239, 3289, 53111, 1031497, 22906903, 578734697, 16306214743, 508360540457, 17354157283287, 644314385719593, 25842490815894231, 1113789927340848937, 51332921853722842327, 2519491205735072674601
Offset: 1

Views

Author

Wolfdieter Lang, Nov 13 2007

Keywords

Crossrefs

Cf. A134152 (row sums of triangle A134151).

Formula

a(n) = Sum_{m=1..n} A134151(n,m)*(-1)^(m-1), n>=1.

A047838 a(n) = floor(n^2/2) - 1.

Original entry on oeis.org

1, 3, 7, 11, 17, 23, 31, 39, 49, 59, 71, 83, 97, 111, 127, 143, 161, 179, 199, 219, 241, 263, 287, 311, 337, 363, 391, 419, 449, 479, 511, 543, 577, 611, 647, 683, 721, 759, 799, 839, 881, 923, 967, 1011, 1057, 1103, 1151, 1199, 1249, 1299, 1351, 1403
Offset: 2

Views

Author

Michael Somos, May 07 1999

Keywords

Comments

Define the organization number of a permutation pi_1, pi_2, ..., pi_n to be the following. Start at 1, count the steps to reach 2, then the steps to reach 3, etc. Add them up. Then the maximal value of the organization number of any permutation of [1..n] for n = 0, 1, 2, 3, ... is given by 0, 1, 3, 7, 11, 17, 23, ... (this sequence). This was established by Graham Cormode (graham(AT)research.att.com), Aug 17 2006, see link below, answering a question raised by Tom Young (mcgreg265(AT)msn.com) and Barry Cipra, Aug 15 2006
From Dmitry Kamenetsky, Nov 29 2006: (Start)
This is the length of the longest non-self-intersecting spiral drawn on an n X n grid. E.g., for n=5 the spiral has length 17:
1 0 1 1 1
1 0 1 0 1
1 0 1 0 1
1 0 0 0 1
1 1 1 1 1 (End)
It appears that a(n+1) is the maximum number of consecutive integers (beginning with 1) that can be placed, one after another, on an n-peg Towers of Hanoi, such that the sum of any two consecutive integers on any peg is a square. See the problem: http://online-judge.uva.es/p/v102/10276.html. - Ashutosh Mehra, Dec 06 2008
a(n) = number of (w,x,y) with all terms in {0,...,n} and w = |x+y-w|. - Clark Kimberling, Jun 11 2012
The same sequence also represents the solution to the "pigeons problem": maximal value of the sum of the lengths of n-1 line segments (connected at their end-points) required to pass through n trail dots, with unit distance between adjacent points, visiting all of them without overlaping two or more segments. In this case, a(0)=0, a(1)=1, a(2)=3, and so on. - Marco Ripà, Jan 28 2014
Also the longest path length in the n X n white bishop graph. - Eric W. Weisstein, Mar 27 2018
a(n) is the number of right triangles with sides n*(h-floor(h)), floor(h) and h, where h is the hypotenuse. - Andrzej Kukla, Apr 14 2021

Examples

			x^2 + 3*x^3 + 7*x^4 + 11*x^5 + 17*x^6 + 23*x^7 + 31*x^8 + 39*x^9 + 49*x^10 + ...
		

Crossrefs

Complement of A047839. First difference is A052928.
Partial sums: A213759(n-1) for n > 1. - Guenther Schrack, May 12 2018

Programs

  • Magma
    [Floor(n^2/2)-1 : n in [2..100]]; // Wesley Ivan Hurt, Aug 06 2015
  • Maple
    seq(floor((n^2+4*n+2)/2), n=0..20) # Gary Detlefs, Feb 10 2010
  • Mathematica
    Table[Floor[n^2/2] - 1, {n, 2, 60}] (* Robert G. Wilson v, Aug 31 2006 *)
    LinearRecurrence[{2, 0, -2, 1}, {1, 3, 7, 11}, 60] (* Harvey P. Dale, Jan 16 2015 *)
    Floor[Range[2, 20]^2/2] - 1 (* Eric W. Weisstein, Mar 27 2018 *)
    Table[((-1)^n + 2 n^2 - 5)/4, {n, 2, 20}] (* Eric W. Weisstein, Mar 27 2018 *)
    CoefficientList[Series[(-1 - x - x^2 + x^3)/((-1 + x)^3 (1 + x)), {x, 0, 20}], x] (* Eric W. Weisstein, Mar 27 2018 *)
  • PARI
    a(n) = n^2\2 - 1
    

Formula

a(2)=1; for n > 2, a(n) = a(n-1) + n - 1 + (n-1 mod 2). - Benoit Cloitre, Jan 12 2003
a(n) = T(n-1) + floor(n/2) - 1 = T(n) - floor((n+3)/2), where T(n) is the n-th triangular number (A000217). - Robert G. Wilson v, Aug 31 2006
Equals (n-1)-th row sums of triangles A134151 and A135152. Also, = binomial transform of [1, 2, 2, -2, 4, -8, 16, -32, ...]. - Gary W. Adamson, Nov 21 2007
G.f.: x^2*(1+x+x^2-x^3)/((1-x)^3*(1+x)). - R. J. Mathar, Sep 09 2008
a(n) = floor((n^2 + 4*n + 2)/2). - Gary Detlefs, Feb 10 2010
a(n) = abs(A188653(n)). - Reinhard Zumkeller, Apr 13 2011
a(n) = (2*n^2 + (-1)^n - 5)/4. - Bruno Berselli, Sep 14 2011
a(n) = a(-n) = A007590(n) - 1.
a(n) = A080827(n) - 2. - Kevin Ryde, Aug 24 2013
a(n) = 2*a(n-1) - 2*a(n-3) + a(n-4), n > 4. - Wesley Ivan Hurt, Aug 06 2015
a(n) = A000217(n-1) + A004526(n-2), for n > 1. - J. Stauduhar, Oct 20 2017
From Guenther Schrack, May 12 2018: (Start)
Set a(0) = a(1) = -1, a(n) = a(n-2) + 2*n - 2 for n > 1.
a(n) = A000982(n-1) + n - 2 for n > 1.
a(n) = 2*A033683(n) - 3 for n > 1.
a(n) = A061925(n-1) + n - 3 for n > 1.
a(n) = A074148(n) - n - 1 for n > 1.
a(n) = A105343(n-1) + n - 4 for n > 1.
a(n) = A116940(n-1) - n for n > 1.
a(n) = A179207(n) - n + 1 for n > 1.
a(n) = A183575(n-2) + 1 for n > 2.
a(n) = A265284(n-1) - 2*n + 1 for n > 1.
a(n) = 2*A290743(n) - 5 for n > 1. (End)
E.g.f.: 1 + x + ((x^2 + x - 2)*cosh(x) + (x^2 + x - 3)*sinh(x))/2. - Stefano Spezia, May 06 2021
Sum_{n>=2} 1/a(n) = 3/2 + tan(sqrt(3)*Pi/2)*Pi/(2*sqrt(3)) - cot(Pi/sqrt(2))*Pi/(2*sqrt(2)). - Amiram Eldar, Sep 15 2022

Extensions

Edited by Charles R Greathouse IV, Apr 23 2010

A134275 Triangle of numbers obtained from the partition array A134274.

Original entry on oeis.org

1, 5, 1, 45, 5, 1, 585, 70, 5, 1, 9945, 810, 70, 5, 1, 208845, 14895, 935, 70, 5, 1, 5221125, 284895, 16020, 935, 70, 5, 1, 151412625, 7055100, 309645, 16645, 935, 70, 5, 1, 4996616625, 192734100, 7526475, 315270, 16645, 935, 70, 5, 1, 184874815125
Offset: 1

Views

Author

Wolfdieter Lang, Nov 13 2007

Keywords

Comments

This triangle is named S2(5)'.
In the same manner the unsigned Lah triangle A008297 is obtained from the partition array A130561.

Examples

			Triangle begins:
  [1];
  [5,1];
  [45,5,1];
  [585,70,5,1];
  [9945,810,70,5,1];
  ...
		

Crossrefs

Cf. A134276 (row sums). A134277 (alternating row sums).
Cf. A134151 (S2(4)').

Formula

a(n,m) = sum(product(S2(5;j,1)^e(n,m,q,j),j=1..n),q=1..p(n,m)) if n>=m>=1, else 0. Here p(n,m)=A008284(n,m), the number of m parts partitions of n and e(n,m,q,j) is the exponent of j in the q-th m part partition of n. S2(5;j,1)= A007696(j) = A049029(j,1) = (4*j-3)(!^4), (quadruple- or 4-factorials).

A134150 A certain partition array in Abramowitz-Stegun order (A-St order), called M_3(4)/M_3.

Original entry on oeis.org

1, 4, 1, 28, 4, 1, 280, 28, 16, 4, 1, 3640, 280, 112, 28, 16, 4, 1, 58240, 3640, 1120, 784, 280, 112, 64, 28, 16, 4, 1, 1106560, 58240, 14560, 7840, 3640, 1120, 784, 448, 280, 112, 64, 28, 16, 4, 1, 24344320, 1106560, 232960, 101920, 78400, 58240, 14560, 7840
Offset: 1

Views

Author

Wolfdieter Lang, Nov 13 2007

Keywords

Comments

The sequence of row lengths is A000041 (partition numbers) [1, 2, 3, 5, 7, 11, 15, 22, 30, 42, ...].
For the A-St order of partitions see the Abramowitz-Stegun reference given in A117506.
Partition number array M_3(4) = A134149 with each entry divided by the corresponding one of the partition number array M_3 = M_3(1) = A036040; in short, M_3(4)/M_3.

Examples

			Triangle begins:
  [1];
  [4,1];
  [28,4,1];
  [280,28,16,4,1];
  [3640,280,112,28,16,4,1];
  ...
a(4,3)=16 from the third (k=3) partition (2^2) of 4: (4)^2 = 16, because S2(4,2,1) = 4!! = 4*1 = 4.
		

Crossrefs

Cf. A134145 (M_3(3)/M_3 array).
Cf. A134152 (row sums, also of triangle A134151).

Formula

a(n,k) = Product_{j=1..n} S2(4,j,1)^e(n,k,j) with S2(4,n,1) = A035469(n,1) = A007559(n) = (3*n-2)!!! and with the exponent e(n,k,j) of j in the k-th partition of n in the A-St ordering of the partitions of n.
a(n,k) = A134149(n,k)/A036040(n,k) (division of partition arrays M_3(4) by M_3).
Showing 1-5 of 5 results.