login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A258174 Sum over all Dyck paths of semilength n of products over all peaks p of x_p*y_p, where x_p and y_p are the coordinates of peak p. 10

%I #15 Feb 06 2017 13:59:59

%S 1,1,7,84,1486,35753,1111931,43150593,2035666985,114412223081,

%T 7538224510181,574552299138202,50096579094908148,4949493445607316419,

%U 549534510282406667069,68071071679372210762156,9347203754680124767253730,1414740620049957735248175695

%N Sum over all Dyck paths of semilength n of products over all peaks p of x_p*y_p, where x_p and y_p are the coordinates of peak p.

%C A Dyck path of semilength n is a (x,y)-lattice path from (0,0) to (2n,0) that does not go below the x-axis and consists of steps U=(1,1) and D=(1,-1). A peak of a Dyck path is any lattice point visited between two consecutive steps UD.

%H Alois P. Heinz, <a href="/A258174/b258174.txt">Table of n, a(n) for n = 0..250</a>

%H Wikipedia, <a href="https://en.wikipedia.org/wiki/Lattice_path">Lattice path</a>

%p b:= proc(x, y, t) option remember; `if`(y>x or y<0, 0,

%p `if`(x=0, 1, b(x-1, y-1, false)*`if`(t, x*y, 1) +

%p b(x-1, y+1, true) ))

%p end:

%p a:= n-> b(2*n, 0, false):

%p seq(a(n), n=0..20);

%t b[x_, y_, t_] := b[x, y, t] = If[y > x || y < 0, 0, If[x == 0, 1, b[x - 1, y - 1, False]*If[t, x*y, 1] + b[x - 1, y + 1, True]]];

%t a[n_] := b[2*n, 0, False];

%t Table[a[n], {n, 0, 20}] (* _Jean-François Alcover_, Apr 23 2016, translated from Maple *)

%Y Cf. A000108, A000698, A005411, A005412, A258172, A258173, A258175, A258176, A258177, A258178, A258179, A258180, A258181.

%K nonn

%O 0,3

%A _Alois P. Heinz_, May 22 2015

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 20 06:23 EDT 2024. Contains 371799 sequences. (Running on oeis4.)