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.

A098056 Triangle read by rows: T(n,k) = number of peakless Motzkin paths of length n containing k subwords of the type uh^ju, dH^jd, or dh^ju for some j>0, where u=(1,1), d=(1,-1) and h=(1,0) (can be easily expressed using RNA secondary structure terminology).

Original entry on oeis.org

1, 1, 1, 2, 4, 8, 15, 2, 27, 9, 1, 48, 29, 5, 84, 80, 21, 147, 198, 74, 4, 257, 463, 230, 27, 1, 451, 1033, 667, 125, 7, 796, 2235, 1811, 488, 43, 1413, 4727, 4694, 1676, 219, 6, 2526, 9828, 11700, 5317, 946, 54, 1, 4544, 20192, 28252, 15813, 3696, 326, 9, 8226, 41100
Offset: 0

Views

Author

Emeric Deutsch, Sep 11 2004

Keywords

Comments

Row sums are the RNA secondary structure numbers (A004148).
T(n,0) = A098057(n).
Sum(k*T(n,k),k>=0) = A187259(n).

Examples

			Triangle starts:
  1;
  1;
  1;
  2;
  4;
  8;
  15,2;
  27,9,1;
  48,29,5;
  84.80,21;
  147,198,74,7;
  ...
It seems that the number r(n) of terms in row n>=3 is given by r(n)=n/2-1 if n=2 (mod 4) and r(n)=2*round(n/4)-1 otherwise (here round(m) is the nearest integer to m).
T(7,1)=9 because we have h(uhu)hdd, (uhhu)hdd, (uhu)hhdd, (uhu)hddh, uh(dhu)hd and the reflections of the first four paths in a vertical axis; here u=(1,1), h=(1,0), d=(1,-1) and the pertinent subwords are shown between parentheses.
		

Crossrefs

Formula

G.f.=G=G(t, z) satisfies G = 1 + zG + z^2*[H + 2tzH/(1-z)+t^2*z^2*H/(1-z)^2+ z/(1-z)][G-(1-t)zH/(1-z)^2], where H=(1-z)^2*G-1+z.
The 4-variate g.f. G(t,s,v,z) of peakless Motzkin paths, where t, s, v mark subwords of the types uH^ju, dH^jd, dH^ju, respectively, and z marks length, satisfies the equation
G = 1+zG+z^2*[H + (t+s)zH/(1-z)+tsz^2*H/(1-z)^2+z/(1-z)][G-(1-v)zH/(1-z)^2],
where H = (1-z)[(1-z)G-1]. As special cases we get the current sequence A098056 and the sequences A097777 and A098083.

A138653 a(n) = 3*a(n-1)-3*a(n-2)+a(n-3)+a(n-4).

Original entry on oeis.org

1, 2, 4, 8, 15, 27, 48, 86, 156, 285, 521, 950, 1728, 3140, 5707, 10379, 18884, 34362, 62520, 113737, 206897, 376362, 684652, 1245504, 2265815, 4121947, 7498552, 13641134, 24815508, 45143621, 82124025, 149397854, 271780616, 494415932, 899427827, 1636214155
Offset: 0

Views

Author

Paul Curtz, May 15 2008

Keywords

Comments

Sequence is identical to its shifted third differences.

Crossrefs

Programs

  • Mathematica
    LinearRecurrence[{3, -3, 1, 1},{1, 2, 4, 8},14] (* Ray Chandler, Sep 23 2015 *)
  • PARI
    Vec((1-x+x^2+x^3)/(1-3*x+3*x^2-x^3-x^4) + O(x^50)) \\ Colin Barker, Oct 18 2016

Formula

G.f.: (1-x+x^2+x^3) / (1-3*x+3*x^2-x^3-x^4). - Colin Barker, Oct 18 2016
Showing 1-2 of 2 results.