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.

A334648 a(n) is the total number of down steps between the second and third up steps in all 3_1-Dyck paths of length 4*n.

Original entry on oeis.org

0, 0, 34, 132, 722, 4638, 32416, 238956, 1827918, 14370595, 115384756, 942115942, 7798224226, 65286060253, 551838621972, 4702955036640, 40366238473530, 348631520142879, 3027590307082804, 26420699531880832, 231571468023697960, 2037650653547067005
Offset: 0

Views

Author

Benjamin Hackl, May 12 2020

Keywords

Comments

A 3_1-Dyck path is a lattice path with steps (1, 3), (1, -1) that starts and ends at y = 0 and stays above the line y = -1.
For n = 2, there is no 3rd up step, a(2) = 34 enumerates the total number of down steps between the 2nd up step and the end of the path.

Examples

			For n = 2, the 3_1-Dyck paths are DUDDDUDD, DUDDUDDD, DUDUDDDD, DUUDDDDD, UDDDDUDD, UDDDUDDD, UDDUDDDD, UDUDDDDD, UUDDDDDD. In total, there are a(2) = 2 + 3 + 4 + 5 + 2 + 3 + 4 + 5 + 6 = 34 down steps between the 2nd up step and the end of the path.
		

Crossrefs

Programs

  • Mathematica
    a[0] = a[1] = 0; a[n_] := Binomial[4*n + 1, n]/(4*n + 1) + 6 * Sum[Binomial[4*j + 2, j] * Binomial[4*(n - j), n - j]/((4*j + 2)*(n - j + 1)), {j, 1, 2}] - 9 * Boole[n == 2]; Array[a, 22, 0] (* Amiram Eldar, May 12 2020 *)
  • SageMath
    [binomial(4*n + 1, n)/(4*n + 1) + 6*sum([binomial(4*j + 2, j)*binomial(4*(n - j), n - j)/(4*j + 2)/(n - j + 1) for j in srange(1, 3)]) - 9*(n==2) if n > 1 else 0 for n in srange(30)] # Benjamin Hackl, May 12 2020

Formula

a(0) = a(1) = 0 and a(n) = binomial(4*n+1, n)/(4*n+1) + 6*Sum_{j=1..2} binomial(4*j+2, j)*binomial(4*(n-j), n-j)/((4*j+2)*(n-j+1)) - 9*[n=2] for n > 1, where [ ] is the Iverson bracket.

A334649 a(n) is the total number of down steps between the third and fourth up steps in all 3_1-Dyck paths of length 4*n.

Original entry on oeis.org

0, 0, 0, 236, 1034, 6094, 40996, 295740, 2231022, 17370163, 138473536, 1124433142, 9266859394, 77307427741, 651540030688, 5538977450256, 47442103851930, 409000732566399, 3546232676711824, 30903652601552272, 270529448396053576, 2377829916885541565
Offset: 0

Views

Author

Benjamin Hackl, May 12 2020

Keywords

Comments

A 3_1-Dyck path is a lattice path with steps (1, 3), (1, -1) that starts and ends at y = 0 and stays above the line y = -1.
For n = 3, there is no 4th up step, a(3) = 236 enumerates the total number of down steps between the 3rd up step and the end of the path.

Crossrefs

Programs

  • SageMath
    [binomial(4*n + 1, n)/(4*n + 1) + 6*sum([binomial(4*j + 2, j)*binomial(4*(n - j), n - j)/(4*j + 2)/(n - j + 1) for j in srange(1, 4)]) - 52*(n==3) if n > 2 else 0 for n in srange(30)] # Benjamin Hackl, May 12 2020

Formula

a(0) = a(1) = a(2) = 0 and a(n) = binomial(4*n+1, n)/(4*n+1) + 6*Sum_{j=1..3} binomial(4*j+2, j)*binomial(4*(n-j), n-j)/((4*j+2)*(n-j+1)) - 52*[n=3] for n > 2, where [ ] is the Iverson bracket.

A334608 a(n) is the total number of down-steps after the final up-step in all 3_1-Dyck paths of length 4*n (n up-steps and 3n down-steps).

Original entry on oeis.org

0, 5, 34, 236, 1714, 12922, 100300, 796572, 6443536, 52909593, 439896626, 3695917940, 31331587252, 267669458420, 2302188456120, 19918434257052, 173240112503520, 1513821095788420, 13283883136738344, 117009704490121520, 1034217260142108570, 9169842145476773250, 81537271617856588380
Offset: 0

Views

Author

Andrei Asinowski, May 13 2020

Keywords

Comments

A 3_1-Dyck path is a lattice path with steps U=(1, 3), d=(1, -1) that starts at (0,0), stays (weakly) above y=-1, and ends at the x-axis.

Examples

			For n=1, a(1)=5 is the total number of down-steps after the last up-step in Uddd, dUdd.
		

Crossrefs

Programs

  • Mathematica
    a[n_] := 2 * Binomial[4*n + 6, n + 1]/(4*n + 6) - 4 * Binomial[4*n + 2, n]/(4*n + 2); Array[a, 23, 0] (* Amiram Eldar, May 13 2020 *)
  • SageMath
    [2*binomial(4*(n + 1) + 2, n + 1)/(4*(n + 1) + 2) - 4*binomial(4*n + 2, n)/(4*n + 2) for n in srange(30)] # Benjamin Hackl, May 13 2020

Formula

a(n) = 2*binomial(4*(n+1)+2, n+1)/(4*(n+1)+2) - 4*binomial(4*n+2, n)/(4*n+2).

A334650 a(n) is the total number of down steps between the first and second up steps in all 3_2-Dyck paths of length 4*n.

Original entry on oeis.org

0, 6, 31, 158, 975, 6639, 48050, 362592, 2820789, 22460120, 182141553, 1499143282, 12490923757, 105150960654, 892973346300, 7640934031920, 65813450140017, 570160918044288, 4964875184429660, 43431741548248440, 381496856026500220, 3363457643008999635
Offset: 0

Views

Author

Benjamin Hackl, May 13 2020

Keywords

Comments

A 3_2-Dyck path is a lattice path with steps (1, 3), (1, -1) that starts and ends at y = 0 and stays above the line y = -2.
For n = 1, there is no 2nd up step, a(1) = 6 enumerates the total number of down steps between the 1st up step and the end of the path.

Examples

			For n = 1, the 3_2-Dyck paths are DDUD, DUDD, UDDD. This corresponds to a(1) = 1 + 2 + 3 = 6 down steps between the 1st up step and the end of the path.
		

Crossrefs

Programs

  • Mathematica
    a[0] = 0; a[n_] := 3 * Binomial[4*n, n]/(n + 1) - Binomial[4*n + 2, n]/(n + 1) + 9 * Binomial[4*(n - 1), n - 1]/n - 6 * Boole[n == 1]; Array[a, 22, 0] (* Amiram Eldar, May 13 2020 *)
  • SageMath
    [3*binomial(4*n, n)/(n + 1) - binomial(4*n + 2, n)/(n + 1) + 9*binomial(4*(n - 1), n - 1)/n - 6*(n==1) if n > 0 else 0 for n in srange(30)] # Benjamin Hackl, May 13 2020

Formula

a(0) = 0 and a(n) = 3*binomial(4*n, n)/(n+1) - binomial(4*n+2, n)/(n+1) + 9*binomial(4*(n-1), n-1)/n - 6*[n=1] for n > 0, where [ ] is the Iverson bracket.

A334651 a(n) is the total number of down steps between the first and second up steps in all 4_1-Dyck paths of length 5*n.

Original entry on oeis.org

0, 7, 25, 155, 1195, 10282, 94591, 910480, 9054965, 92310075, 959473878, 10129715890, 108327387675, 1170975480360, 12773887368040, 140445927510832, 1554748206904325, 17314584431331025, 193849445090545875, 2180550929942519685, 24632294533221865028
Offset: 0

Views

Author

Benjamin Hackl, May 13 2020

Keywords

Comments

A 4_1-Dyck path is a lattice path with steps (1, 4), (1, -1) that starts and ends at y = 0 and stays above the line y = -1.
For n = 1, there is no 2nd up step, a(1) = 7 enumerates the total number of down steps between the 1st up step and the end of the path.

Examples

			For n = 1, the 4_1-Dyck paths are DUDDD, UDDDD. This corresponds to a(1) = 3 + 4 = 7 down steps between the 1st up step and the end of the path.
		

Crossrefs

Programs

  • Mathematica
    a[0] = 0; a[n_] := 4 * Binomial[5*n, n]/(n + 1) - 3 * Binomial[5*n + 1, n]/(n + 1) + 8*Binomial[5*(n - 1), n - 1]/n - 2 * Boole[n == 1]; Array[a, 21, 0] (* Amiram Eldar, May 13 2020 *)
  • SageMath
    [4*binomial(5*n, n)/(n + 1) - 3*binomial(5*n + 1, n)/(n + 1) + 8*binomial(5*(n - 1), n - 1)/n - 2*(n==1) if n > 0 else 0 for n in srange(30)]

Formula

a(0) = 0 and a(n) = 4*binomial(5*n, n)/(n+1) - 3*binomial(5*n+1, n)/(n+1) + 8*binomial(5*(n-1), n-1)/n - 2*[n=1] for n > 0, where [ ] is the Iverson bracket.
Showing 1-5 of 5 results.