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

A372883 Irregular triangle read by rows: T(n,k) is the number of flattened Catalan words of length n with exactly k symmetric peaks, with k >= 0.

Original entry on oeis.org

1, 2, 4, 1, 9, 5, 23, 17, 1, 63, 51, 8, 176, 149, 39, 1, 491, 439, 153, 11, 1362, 1308, 540, 70, 1, 3762, 3912, 1812, 342, 14, 10369, 11671, 5935, 1439, 110, 1, 28559, 34637, 19175, 5541, 645, 17, 78653, 102222, 61302, 20214, 3170, 159, 1, 216638, 300190, 194080, 71242, 13903, 1089, 20
Offset: 1

Views

Author

Stefano Spezia, May 15 2024

Keywords

Examples

			The irregular triangle begins:
     1;
     2;
     4,    1;
     9,    5;
    23,   17,    1;
    63,   51,    8;
   176,  149,   39,   1;
   491,  439,  153,  11;
  1362, 1308,  540,  70,  1;
  3762, 3912, 1812, 342, 14;
  ...
T(4,1) = 5 since there are 5 flattened Catalan words of length 4 with 1 symmetric peak: 0100, 0101, 0010, 0110, and 0121.
		

Crossrefs

Cf. A007051 (row sums), A290900 (2nd column), A369328 (1st column), A371965, A372879, A372884.

Programs

  • Mathematica
    T[n_,k_]:=SeriesCoefficient[x(1-x)(1-2x)/(1-5x+8x^2-5x^3-x^2y+2x^3y),{x,0,n},{y,0,k}]; Table[T[n,k],{n,14},{k,0,Floor[(n-1)/2]}]//Flatten

Formula

G.f.: x*(1 - x)*(1 - 2*x)/(1 - 5*x + 8*x^2 - 5*x^3 - x^2*y + 2*x^3*y).
Sum_{k>=0} T(n,k) = A007051(n-1).

A372884 a(n) is the sum of all symmetric peaks in the set of flattened Catalan words of length n.

Original entry on oeis.org

1, 5, 19, 67, 230, 778, 2602, 8618, 28303, 92275, 298949, 963253, 3089020, 9864896, 31388260, 99545572, 314779181, 992765041, 3123577735, 9806581175, 30727287586, 96104495110, 300081382574, 935547839662, 2912554595035, 9055397013503, 28119390725977, 87217771234633
Offset: 3

Views

Author

Stefano Spezia, May 15 2024

Keywords

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{9,-30,46,-33,9},{1,5,19,67,230},28]

Formula

From Baril et al.: (Start)
G.f.: (1 - 2*x)^2*x^3/((1 - 3*x)^2*(1 - x)^3).
a(n) = (63 + 3^n + 2*(3^n - 45)*n + 18*n^2)/144. (End)
E.g.f.: (exp(3*x)*(1 + 6*x) + 9*exp(x)*(7 - 8*x + 2*x^2) - 64)/144.
Showing 1-2 of 2 results.