A053121 Catalan triangle (with 0's) read by rows.
1, 0, 1, 1, 0, 1, 0, 2, 0, 1, 2, 0, 3, 0, 1, 0, 5, 0, 4, 0, 1, 5, 0, 9, 0, 5, 0, 1, 0, 14, 0, 14, 0, 6, 0, 1, 14, 0, 28, 0, 20, 0, 7, 0, 1, 0, 42, 0, 48, 0, 27, 0, 8, 0, 1, 42, 0, 90, 0, 75, 0, 35, 0, 9, 0, 1, 0, 132, 0, 165, 0, 110, 0, 44, 0, 10, 0, 1, 132, 0, 297, 0, 275, 0, 154, 0, 54, 0, 11, 0
Offset: 0
Examples
Triangle a(n,m) begins: n\m 0 1 2 3 4 5 6 7 8 9 10 ... 0: 1 1: 0 1 2: 1 0 1 3: 0 2 0 1 4: 2 0 3 0 1 5: 0 5 0 4 0 1 6: 5 0 9 0 5 0 1 7: 0 14 0 14 0 6 0 1 8: 14 0 28 0 20 0 7 0 1 9: 0 42 0 48 0 27 0 8 0 1 10: 42 0 90 0 75 0 35 0 9 0 1 ... (Reformatted by _Wolfdieter Lang_, Sep 20 2013) E.g., the fourth row corresponds to the polynomial p(3,x)= 2*x + x^3. From _Paul Barry_, May 29 2009: (Start) Production matrix is 0, 1, 1, 0, 1, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1 (End) Boas-Buck recurrence for column k = 2, n = 6: a(6, 2) = (3/4)*(0 + 2*a(4 ,2) + 0 + 6*a(2, 2)) = (3/4)*(2*3 + 6) = 9. - _Wolfdieter Lang_, Aug 11 2017
References
- J. H. Conway and D. A. Smith, On Quaternions and Octonions, A K Peters, Ltd., Natick, MA, 2003. See p. 60. MR1957212 (2004a:17002)
- A. Nkwanta, Lattice paths and RNA secondary structures, in African Americans in Mathematics, ed. N. Dean, Amer. Math. Soc., 1997, pp. 137-147.
Links
- Reinhard Zumkeller, Rows n=0..150 of triangle, flattened
- I. Bajunaid et al., Function series, Catalan numbers and random walks on trees, Amer. Math. Monthly 112 (2005), 765-785.
- C. Banderier and D. Merlini, Lattice paths with an infinite set of jumps
- Paul Barry, Riordan Arrays, Orthogonal Polynomials as Moments, and Hankel Transforms, J. Int. Seq. 14 (2011) # 11.2.2, example 3.
- Paul Barry, On the inversion of Riordan arrays, arXiv:2101.06713 [math.CO], 2021.
- Paul Barry and A. Hennessy, Meixner-Type Results for Riordan Arrays and Associated Integer Sequences, J. Int. Seq. 13 (2010) # 10.9.4, example 3.
- Xiang-Ke Chang, X.-B. Hu, H. Lei, and Y.-N. Yeh, Combinatorial proofs of addition formulas, The Electronic Journal of Combinatorics, 23(1) (2016), #P1.8.
- J. Cigler, Some q-analogues of Fibonacci, Lucas and Chebyshev polynomials with nice moments, 2013.
- J. Cigler, Some remarks about q-Chebyshev polynomials and q-Catalan numbers and related results, 2013.
- J. Cigler, Some notes on q-Gould polynomials, 2013.
- Emeric Deutsch, A. Robertson and D. Saracino, Refined restricted involutions, European Journal of Combinatorics 28 (2007), 481-498 (see pp. 486 and 498).
- J. East and R. D. Gray, Idempotent generators in finite partition monoids and related semigroups, arXiv preprint arXiv:1404.2359, 2014
- D. Gouyou-Beauchamps, Chemins sous-diagonaux et tableau de Young, pp. 112-125 of "Combinatoire Enumerative (Montreal 1985)", Lect. Notes Math. 1234, 1986 (see |F_{l,p}| on page 114). - _N. J. A. Sloane_, Jan 29 2011
- Aoife Hennessy, A Study of Riordan Arrays with Applications to Continued Fractions, Orthogonal Polynomials and Lattice Paths, Ph. D. Thesis, Waterford Institute of Technology, Oct. 2011.
- V. E. Hoggatt, Jr. and M. Bicknell, Catalan and related sequences arising from inverses of Pascal's triangle matrices, Fib. Quart., 14 (1976), 395-405.
- W. F. Klostermeyer, M. E. Mays, L. Soltes and G. Trapp, A Pascal rhombus, Fibonacci Quarterly, 35 (1997), 318-328.
- Wolfdieter Lang, Chebyshev S-polynomials: ten applications.
- Wolfdieter Lang, On polynomials related to powers of the generating function of Catalan's numbers, Fib. Quart. 38,5 (2000) 408-419; Note 4, pp. 414-415.
- MathOverflow, Catalan numbers as sums of squares of numbers in the rows of the Catalan triangle - is there a combinatorial explanation?
- A. Nkwanta and A. Tefera, Curious Relations and Identities Involving the Catalan Generating Function and Numbers, Journal of Integer Sequences, 16 (2013), #13.9.5.
- Karim Ritter von Merkl, Computing colored Khovanov homology, arXiv:2505.03916 [math.QA], 2025. See p. 2.
- Frank Ruskey and Mark Weston, Spherical Venn Diagrams with Involutory Isometries, Electronic Journal of Combinatorics, 18 (2011), #P191.
- L. W. Shapiro, S. Getu, Wen-Jin Woan and L. C. Woodson, The Riordan Group, Discrete Appl. Maths. 34 (1991) 229-239.
- Yidong Sun and Luping Ma, Minors of a class of Riordan arrays related to weighted partial Motzkin paths. Eur. J. Comb. 39, 157-169 (2014).
- Mark C. Wilson, Diagonal asymptotics for products of combinatorial classes.
- W.-J. Woan, Area of Catalan Paths, Discrete Math., 226 (2001), 439-444.
- Index entries for sequences related to Chebyshev polynomials.
Crossrefs
Programs
-
Haskell
a053121 n k = a053121_tabl !! n !! k a053121_row n = a053121_tabl !! n a053121_tabl = iterate (\row -> zipWith (+) ([0] ++ row) (tail row ++ [0,0])) [1] -- Reinhard Zumkeller, Feb 24 2012
-
Maple
T:=proc(n,k): if n+k mod 2 = 0 then (k+1)*binomial(n+1,(n-k)/2)/(n+1) else 0 fi end: for n from 0 to 13 do seq(T(n,k),k=0..n) od; # yields sequence in triangular form; Emeric Deutsch, Oct 12 2006 F:=proc(l,p) if ((l-p) mod 2) = 1 then 0 else (p+1)*l!/( ( (l-p)/2 )! * ( (l+p)/2 +1)! ); fi; end; r:=n->[seq( F(n,p),p=0..n)]; [seq(r(n),n=0..15)]; # N. J. A. Sloane, Jan 29 2011 A053121 := proc(n,k) option remember; `if`(k>n or k<0,0,`if`(n=k,1, procname(n-1,k-1)+procname(n-1,k+1))) end proc: seq(print(seq(A053121(n,k), k=0..n)),n=0..12); # Peter Luschny, May 01 2011
-
Mathematica
a[n_, m_] /; n < m || OddQ[n-m] = 0; a[n_, m_] = (m+1) Binomial[n+1, (n-m)/2]/(n+1); Flatten[Table[a[n, m], {n, 0, 12}, {m, 0, n}]] [[1 ;; 90]] (* Jean-François Alcover, May 18 2011 *) T[0, 0] := 1; T[n_, k_]/;0<=k<=n := T[n, k] = T[n-1, k-1]+T[n-1, k+1]; T[n_, k_] := 0; Flatten@Table[T[n, k], {n, 0, 12}, {k, 0, n}] (* Oliver Seipel, Dec 31 2024 *)
-
PARI
T(n, m)=if(n
Charles R Greathouse IV, Mar 09 2016 -
Sage
def A053121_triangle(dim): M = matrix(ZZ,dim,dim) for n in (0..dim-1): M[n,n] = 1 for n in (1..dim-1): for k in (0..n-1): M[n,k] = M[n-1,k-1] + M[n-1,k+1] return M A053121_triangle(13) # Peter Luschny, Sep 19 2012
Formula
a(n, m) := 0 if n
a(n, m) = (4*(n-1)*a(n-2, m) + 2*(m+1)*a(n-1, m-1))/(n+m+2), a(n, m)=0 if n
G.f. for m-th column: c(x^2)*(x*c(x^2))^m, where c(x) = g.f. for Catalan numbers A000108.
G.f.: G(t,z) = c(z^2)/(1 - t*z*c(z^2)), where c(z) = (1 - sqrt(1-4*z))/(2*z) is the g.f. for the Catalan numbers (A000108). - Emeric Deutsch, Jun 16 2011
a(n, m) = a(n-1, m-1) + a(n-1, m+1) if n > 0 and m >= 0, a(0, 0)=1, a(0, m)=0 if m > 0, a(n, m)=0 if m < 0. - Henry Bottomley, Jan 25 2001
Sum_{k>=0} T(m,k)^2 = A000108(m). - Paul D. Hanna, Apr 23 2005
Sum_{k>=0} T(m, k)*T(n, k) = 0 if m+n is odd; Sum_{k>=0} T(m, k)*T(n, k) = A000108((m+n)/2) if m+n is even. - Philippe Deléham, May 26 2005
T(n,k)=sum{i=0..n, (-1)^(n-i)*C(n,i)*sum{j=0..i, C(i,j)*(C(i-j,j+k)-C(i-j,j+k+2))}}; Column k has e.g.f. BesselI(k,2x)-BesselI(k+2,2x). - Paul Barry, Feb 16 2006
Sum_{k=0..n} T(n,k)*(k+1) = 2^n. - Philippe Deléham, Mar 22 2007
Sum_{j>=0} T(n,j)*binomial(j,k) = A054336(n,k). - Philippe Deléham, Mar 30 2007
Sum_{k=0..n} T(n,k)^x = A000027(n+1), A001405(n), A000108(n), A003161(n), A129123(n) for x = 0,1,2,3,4 respectively. - Philippe Deléham, Nov 22 2009
Sum_{k=0..n} T(n,k)*x^k = A126930(n), A126120(n), A001405(n), A054341(n), A126931(n) for x = -1, 0, 1, 2, 3 respectively. - Philippe Deléham, Nov 28 2009
Recurrence for row polynomials C(n, x) := Sum_{m=0..n} a(n, m)*x^m = x*Sum_{k=0..n} Chat(k)*C(n-1-k, x), n >= 0, with C(-1, 1/x) = 1/x and Chat(k) = A000108(k/2) if n is even and 0 otherwise. From the o.g.f. of the row polynomials: G(z; x) := Sum_{n >= 0} C(n, x)*z^n = c(z^2)*(1 + x*z*G(z, x)), with the o.g.f. c of A000108. - Ahmet Zahid KÜÇÜK and Wolfdieter Lang, Aug 23 2015
The Boas-Buck recurrence (see a comment above) for the sequence of column m is: a(n, m) = ((m+1)/(n-m))*Sum_{j=0..n-1-m} (1/2)*(1 - (-1)^j)*binomial(j+1, (j+1)/2)* a(n-1-j, k), for n > m >= 0 and input a(m, m) = 1. - Wolfdieter Lang, Aug 11 2017
Sum_{m=1..n} a(n,m) = A037952(n). - R. J. Mathar, Sep 23 2021
Extensions
Edited by N. J. A. Sloane, Jan 29 2011
A120730 Another version of Catalan triangle A009766.
1, 0, 1, 0, 1, 1, 0, 0, 2, 1, 0, 0, 2, 3, 1, 0, 0, 0, 5, 4, 1, 0, 0, 0, 5, 9, 5, 1, 0, 0, 0, 0, 14, 14, 6, 1, 0, 0, 0, 0, 14, 28, 20, 7, 1, 0, 0, 0, 0, 0, 42, 48, 27, 8, 1, 0, 0, 0, 0, 0, 42, 90, 75, 35, 9, 1, 0, 0, 0, 0, 0, 0, 132, 165, 110, 44, 10, 1
Offset: 0
Comments
Triangle T(n,k), 0 <= k <= n, read by rows, given by [0, 1, -1, 0, 0, 1, -1, 0, 0, 1, -1, 0, 0, ...] DELTA [1, 0, 0, -1, 1, 0, 0, -1, 1, 0, 0, -1, 1, ...] where DELTA is the operator defined in A084938.
Aerated version gives A165408. - Philippe Deléham, Sep 22 2009
T(n,k) is the number of length n left factors of Dyck paths having k up steps. Example: T(5,4)=4 because we have UDUUU, UUDUU, UUUDU, and UUUUD, where U=(1,1) and D=(1,-1). - Emeric Deutsch, Jun 19 2011
With zeros omitted: 1,1,1,1,2,1,2,3,1,5,4,1,... = A008313. - Philippe Deléham, Nov 02 2011
Examples
As a triangle, this begins: 1; 0, 1; 0, 1, 1; 0, 0, 2, 1; 0, 0, 2, 3, 1; 0, 0, 0, 5, 4, 1; 0, 0, 0, 5, 9, 5, 1; 0, 0, 0, 0, 14, 14, 6, 1; ...
Links
- Alois P. Heinz, Rows n = 0..200, flattened
Crossrefs
Programs
-
Magma
A120730:= func< n,k | n gt 2*k select 0 else Binomial(n, k)*(2*k-n+1)/(k+1) >; [A120730(n,k): k in [0..n], n in [0..13]]; // G. C. Greubel, Nov 07 2022
-
Maple
G := 4*z/((2*z-1+sqrt(1-4*z^2*t))*(1+sqrt(1-4*z^2*t))): Gser := simplify(series(G, z = 0, 13)): for n from 0 to 12 do P[n] := sort(coeff(Gser, z, n)) end do: for n from 0 to 12 do seq(coeff(P[n], t, k), k = 0 .. n) end do; # yields sequence in triangular form # Emeric Deutsch, Jun 19 2011 # second Maple program: b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, 1, add(b(x-1, y+j), j=[-1, 1]))) end: T:= (n, k)-> b(n, 2*k-n): seq(seq(T(n, k), k=0..n), n=0..14); # Alois P. Heinz, Oct 13 2022
-
Mathematica
b[x_, y_]:= b[x, y]= If[y<0 || y>x, 0, If[x==0, 1, Sum[b[x-1, y+j], {j, {-1, 1}}] ]]; T[n_, k_] := b[n, 2 k - n]; Table[Table[T[n, k], {k, 0, n}], {n, 0, 14}] // Flatten (* Jean-François Alcover, Oct 21 2022, after Alois P. Heinz *) T[n_, k_]:= If[n>2*k, 0, Binomial[n, k]*(2*k-n+1)/(k+1)]; Table[T[n, k], {n,0,13}, {k,0,n}]//Flatten (* G. C. Greubel, Nov 07 2022 *)
-
SageMath
def A120730(n,k): return 0 if (n>2*k) else binomial(n, k)*(2*k-n+1)/(k+1) flatten([[A120730(n,k) for k in range(n+1)] for n in range(14)]) # G. C. Greubel, Nov 07 2022
Formula
G.f.: G(t,z) = 4*z/((2*z-1+sqrt(1-4*t*z^2))*(1+sqrt(1-4*t*z^2))). - Emeric Deutsch, Jun 19 2011
Sum_{k=0..n} x^k*T(n,n-k) = A001405(n), A126087(n), A128386(n), A121724(n), A128387(n), A132373(n), A132374(n), A132375(n), A121725(n) for x=1,2,3,4,5,6,7,8,9 respectively. [corrected by Philippe Deléham, Oct 16 2008]
From Philippe Deléham, Oct 18 2008: (Start)
Sum_{k=0..n} T(n,k)^3 = A003161(n).
Sum_{k=0..n} T(n,k)^4 = A129123(n). (End)
Sum_{k=0..n}, T(n,k)*x^k = A000007(n), A001405(n), A151281(n), A151162(n), A151254(n), A156195(n), A156361(n), A156362(n), A156566(n), A156577(n) for x=0,1,2,3,4,5,6,7,8,9 respectively. - Philippe Deléham, Feb 10 2009
From G. C. Greubel, Nov 07 2022: (Start)
T(n, k) = 0 if n > 2*k, otherwise binomial(n, k)*(2*k-n+1)/(k+1).
Sum_{k=0..n} (-1)^k*T(n,k) = A105523(n).
Sum_{k=0..n} (-1)^k*T(n,k)^2 = -A132889(n), n >= 1.
Sum_{k=0..floor(n/2)} T(n-k, k) = A357654(n).
T(n, n-1) = A001477(n).
T(n, n-2) = [n=2] + A000096(n-3), n >= 2.
T(n, n-3) = 2*[n<5] + A005586(n-5), n >= 3.
T(n, n-4) = 5*[n<7] - 2*[n=4] + A005587(n-7), n >= 4.
T(2*n+1, n+1) = A000108(n+1), n >= 0.
T(2*n-1, n+1) = A099376(n-1), n >= 1. (End)
A003161 A binomial coefficient sum.
1, 1, 2, 9, 36, 190, 980, 5705, 33040, 204876, 1268568, 8209278, 53105976, 354331692, 2364239592, 16140234825, 110206067400, 765868074400, 5323547715200, 37525317999884, 264576141331216, 1886768082651816, 13458185494436592, 96906387191038334, 697931136204820336
Offset: 0
Comments
The number of triples of standard tableaux of the same shape of height less than or equal to 2. - Mike Zabrocki, Mar 29 2007
From Peter Bala, Mar 20 2023: (Start)
For r a positive integer define S(r,n) = Sum_{k = 0..floor(n/2)} ( binomial(n,k) - binomial(n,k-1) )^r. The present sequence is {S(3,n)}. For other cases see A361887 ({S(5,n)}) and A361890 ({S(7,n)}).
Gould (1974) proposed the problem of showing that S(3,n) was always divisible by S(1,n). See A183069 for {S(3,n)/S(1,n)}. In fact, calculation suggests that if r is odd then S(r,n) is always divisible by S(1,n).
Conjecture: Let b(n) = a(2*n-1). Then the supercongruence b(n*p^k) == b(n*p^(k-1)) (mod p^(3*k)) holds for positive integers n and k and all primes p >= 5. (End)
References
- N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..1116
- F. Bergeron, L. Favreau and D. Krob, Conjectures on the enumeration of tableaux of bounded height, Discrete Math, vol. 139, no. 1-3 (1995), 463-468.
- H. W. Gould, Problem E2384, Amer. Math. Monthly, 81 (1974), 170-171.
Crossrefs
Programs
-
Maple
ogf := ((8*x-1)*(8*x+1)*hypergeom([1/4, 1/4],[1],64*x^2)^2/(x+1)-3*Int((16*x-5)*hypergeom([1/4, 1/4],[1],64*x^2)^2/(x+1)^2,x)+1)/(16*x); series(ogf,x=0,30); # Mark van Hoeij, May 06 2013
-
Mathematica
Table[Sum[(Binomial[n, k]-Binomial[n, k-1])^3,{k,0,Floor[n/2]}],{n,0,20}] (* Vaclav Kotesovec, Mar 06 2014 *)
-
PARI
a(n)=sum(k=0,n\2, (binomial(n,k)-binomial(n,k-1))^3) /* Michael Somos, Jun 02 2005 */
Formula
a(n) = Sum_{k=0..n} A120730(n,k)^3. - Philippe Deléham, Oct 18 2008
G.f.: hypergeometric expression with an anti-derivative, see Maple program. - Mark van Hoeij, May 06 2013
Recurrence: n*(n+1)^3*(7*n^2 - 14*n + 3)*a(n) = - n*(7*n^5 - 112*n^4 + 206*n^3 + 8*n^2 - 125*n + 48)*a(n-1) + 16*(n-1)*(28*n^5 - 133*n^4 + 194*n^3 - 33*n^2 - 120*n + 61)*a(n-2) + 64*(n-2)^3*(n-1)*(7*n^2 - 4)*a(n-3). - Vaclav Kotesovec, Mar 06 2014
a(n) ~ 2^(3*n+9/2) / (9 * Pi^(3/2) * n^(5/2)). - Vaclav Kotesovec, Mar 06 2014
a(n) = Sum_{j=0..floor(n/2)} A008315(n,j)^3. - Alois P. Heinz, Oct 17 2022
A357824 Total number A(n,k) of k-tuples of semi-Dyck paths from (0,0) to (n,n-2*j) for j=0..floor(n/2); square array A(n,k), n>=0, k>=0, read by antidiagonals.
1, 1, 1, 1, 1, 2, 1, 1, 2, 2, 1, 1, 2, 3, 3, 1, 1, 2, 5, 6, 3, 1, 1, 2, 9, 14, 10, 4, 1, 1, 2, 17, 36, 42, 20, 4, 1, 1, 2, 33, 98, 190, 132, 35, 5, 1, 1, 2, 65, 276, 882, 980, 429, 70, 5, 1, 1, 2, 129, 794, 4150, 7812, 5705, 1430, 126, 6, 1, 1, 2, 257, 2316, 19722, 65300, 78129, 33040, 4862, 252, 6
Offset: 0
Examples
Square array A(n,k) begins: 1, 1, 1, 1, 1, 1, 1, 1, ... 1, 1, 1, 1, 1, 1, 1, 1, ... 2, 2, 2, 2, 2, 2, 2, 2, ... 2, 3, 5, 9, 17, 33, 65, 129, ... 3, 6, 14, 36, 98, 276, 794, 2316, ... 3, 10, 42, 190, 882, 4150, 19722, 94510, ... 4, 20, 132, 980, 7812, 65300, 562692, 4939220, ... 4, 35, 429, 5705, 78129, 1083425, 15105729, 211106945, ...
Links
- Alois P. Heinz, Antidiagonals n = 0..121, flattened
- Wikipedia, Counting lattice paths
Crossrefs
Programs
-
Maple
b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, 1, add(b(x-1, y+j), j=[-1, 1]))) end: A:= (n, k)-> add(b(n, n-2*j)^k, j=0..n/2): seq(seq(A(n, d-n), n=0..d), d=0..12);
-
Mathematica
b[x_, y_] := b[x, y] = If[y < 0 || y > x, 0, If[x == 0, 1, Sum[b[x - 1, y + j], {j, {-1, 1}}]]]; A[n_, k_] := Sum[b[n, n - 2*j]^k, { j, 0, n/2}]; Table[Table[A[n, d - n], {n, 0, d}], {d, 0, 12}] // Flatten (* Jean-François Alcover, Oct 18 2022, after Alois P. Heinz *)
A382433 a(n) = S(6,n), where S(r,n) = Sum_{k=0..floor(n/2)} ( binomial(n,k) - binomial(n,k-1) )^r.
1, 1, 2, 65, 794, 19722, 562692, 15105729, 553537490, 18107304842, 716747344436, 27247858130506, 1137502720488532, 47573235297987700, 2085487143991309320, 92820152112054862785, 4246321874111740074210, 197525644801830489637170, 9363425291004877645851300
Offset: 0
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..562
Programs
-
Maple
b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, 1, add(b(x-1, y+j), j=[-1, 1]))) end: a:= n-> add(b(n, n-2*j)^6, j=0..n/2): seq(a(n), n=0..18); # Alois P. Heinz, Mar 25 2025
-
Mathematica
Table[Sum[Binomial[n,k] * (Binomial[n,k] - Binomial[n,k-1])^5, {k,0,n}], {n,0,20}] (* Vaclav Kotesovec, Mar 25 2025 *)
-
PARI
a(n) = sum(k=0, n, binomial(n, k)*(binomial(n, k)-binomial(n, k-1))^5);
-
Python
from math import comb def A382433(n): return sum((comb(n,j)*(m:=n-(j<<1)+1)//(m+j))**6 for j in range((n>>1)+1)) # Chai Wah Wu, Mar 25 2025
Formula
a(n) = Sum_{k=0..floor(n/2)} A008315(n,k)^6.
a(n) = Sum_{k=0..n} A120730(n,k)^6.
a(n) = A357824(n,6).
a(n) = Sum_{k=0..n} binomial(n,k) * ( binomial(n,k) - binomial(n,k-1) )^5.
a(n) ~ 5 * 2^(6*n+4) / (3^(5/2) * Pi^(5/2) * n^(11/2)). - Vaclav Kotesovec, Mar 25 2025
A355481 Number of pairs of Dyck paths of semilength n such that the midpoint of the first is above the midpoint of the second.
0, 0, 1, 4, 49, 441, 4806, 52956, 614713, 7341697, 90118054, 1130414649, 14447230854, 187609607862, 2470253990556, 32922380442828, 443493622670313, 6031353319151961, 82725531355436886, 1143385727109903585, 15913217995801644870, 222875331740976566070
Offset: 0
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..839
- Wikipedia, Counting lattice paths
Programs
-
Maple
b:= proc(n) option remember; `if`(n<2, 1, (2*n*(90*n^5-309*n^4+147*n^3+ 124*n^2-135*n+35)*b(n-1)+4*(n-1)^2*(4*n-5)*(4*n-3)*(15*n^2-4*n-12)* b(n-2))/(n*(n+1)^3*(15*n^2-34*n+7))) end: a:= n-> ((binomial(n+n, n)/(n+1))^2-b(n))/2: seq(a(n), n=0..21);
-
Mathematica
A129123[n_] := Sum[(Binomial[n, k]-Binomial[n, k-1])^4, {k, 0, Floor[n/2]}]; a[n_] := (CatalanNumber[n]^2 - A129123[n])/2; Table[a[n], {n, 0, 21}] (* Jean-François Alcover, Nov 16 2022 *)
A357652 Number of pairs of Dyck paths of semilength n such that the midpoint of the first is not below the midpoint of the second.
1, 1, 3, 21, 147, 1323, 12618, 131085, 1430187, 16297347, 191987562, 2325379147, 28821761290, 364290802138, 4682375323044, 61067639131197, 806671205158587, 10776418254992139, 145413196382253114, 1979833455619072515, 27174458892459331530, 375722890152963114330
Offset: 0
Keywords
Links
- Alois P. Heinz, Table of n, a(n) for n = 0..839
- Wikipedia, Counting lattice paths
Programs
-
Maple
b:= proc(n) option remember; `if`(n<2, 1, (2*n*(90*n^5-309*n^4+147*n^3+ 124*n^2-135*n+35)*b(n-1)+4*(n-1)^2*(4*n-5)*(4*n-3)*(15*n^2-4*n-12)* b(n-2))/(n*(n+1)^3*(15*n^2-34*n+7))) end: a:= n-> ((binomial(n+n, n)/(n+1))^2+b(n))/2: seq(a(n), n=0..21);
A381676 a(n) = Sum_{k=0..n} binomial(n,k) * ( binomial(n,k) - binomial(n,k-1) )^2.
1, 1, 4, 17, 86, 472, 2752, 16753, 105394, 680366, 4484360, 30067160, 204508240, 1408057120, 9796738304, 68786005361, 486845236106, 3470187822754, 24891491746792, 179556655434382, 1301857088258836, 9482632068303296, 69361538748381824, 509303099950899352
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..1000
Crossrefs
Programs
-
Magma
[ &+[Binomial(n, k)^2 * (Binomial(n, k) - (k gt 0 select Binomial(n, k-1) else 0)) : k in [0..n]] : n in [0..20] ]; // Vincenzo Librandi, Mar 27 2025
-
Mathematica
Table[Sum[Binomial[n,k]^2*(Binomial[n,k]-Binomial[n,k-1]),{k,0,n}],{n,0,20}] (* Vincenzo Librandi, Mar 27 2025 *)
-
PARI
a(n) = sum(k=0, n, binomial(n, k)*(binomial(n, k)-binomial(n, k-1))^2);
Formula
a(n) = Sum_{k=0..n} binomial(n,k)^2 * ( binomial(n,k) - binomial(n,k-1) ).
a(n) ~ 2^(3*n+3) / (Pi * 3^(3/2) * n^2). - Vaclav Kotesovec, Mar 26 2025
A382434 a(n) = Sum_{k=0..n} ( binomial(n,k) - binomial(n,k-1) )^4.
1, 1, 3, 33, 195, 1763, 15623, 156257, 1630947, 17911299, 203739015, 2389928995, 28749060871, 353362388551, 4424242664975, 56290517376737, 726355164976547, 9490129871680355, 125375330053632455, 1672895457018337859, 22522481793315373319, 305695116823973096519
Offset: 0
Keywords
Programs
-
Maple
b:= proc(x, y) option remember; `if`(y<0 or y>x, 0, `if`(x=0, 1, add(b(x-1, y+j), j=[-1, 1]))) end: a:= n-> 2*add(b(n, n-2*j)^4, j=0..n/2)-1: seq(a(n), n=0..21); # Alois P. Heinz, Mar 25 2025
-
PARI
a(n) = sum(k=0, n, (binomial(n, k)-binomial(n, k-1))^4);
-
Python
from math import comb def A382434(n): return (sum((comb(n,j)*(m:=n-(j<<1)+1)//(m+j))**4 for j in range((n>>1)+1))<<1)-1 # Chai Wah Wu, Mar 25 2025
Formula
a(n) = 2 * A129123(n) - 1.
D-finite with recurrence n*(n+1)^3*a(n) -2*n*(11*n^3-17*n^2+5*n+5)*a(n-1) -4*(n-1)*(70*n^3-365*n^2+527*n-162)*a(n-2) +8*(n-2)*(584*n^3-5020*n^2+14111*n-13059)*a(n-3) +1344*(4*n-11)*(4*n-13)*(-3+n)^2*a(n-4) +9*(2875*n^4-33975*n^3+149945*n^2-293541*n+215336)=0. - R. J. Mathar, Mar 31 2025
A382443 a(n) = Sum_{k=0..n} binomial(n,k) * ( binomial(n,k) - binomial(n,k-1) )^4.
1, 1, 4, 65, 566, 10912, 164032, 3237313, 62253130, 1314421886, 28392213224, 639799858304, 14785604868256, 350615631856960, 8485316740880384, 209179475361783233, 5239271305444731698, 133100429387161703962, 3424142506153260211720, 89090362800169426107070
Offset: 0
Keywords
Links
- Vincenzo Librandi, Table of n, a(n) for n = 0..500
Programs
-
Magma
[&+[Binomial(n, k)* (Binomial(n, k) - Binomial (n, k-1))^4: k in [0..n]]: n in [0..21]]; // Vincenzo Librandi, Mar 29 2025
-
Mathematica
Table[Sum[Binomial[n,k]*(Binomial[n,k]-Binomial[n,k-1])^4,{k,0,n}],{n,0,20}] (* Vincenzo Librandi, Mar 29 2025 *)
-
PARI
a(n) = sum(k=0, n, binomial(n, k)*(binomial(n, k)-binomial(n, k-1))^4);
Formula
a(n) = Sum_{k=0..n} binomial(n,k)^2 * ( binomial(n,k) - binomial(n,k-1) )^3.
a(n) ~ 3 * 2^(5*n+6) / (Pi^2 * 5^(5/2) * n^4). - Vaclav Kotesovec, Mar 26 2025
Comments