The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A274405 Number of anti-down steps in all modified skew Dyck paths of semilength n. 2

%I #11 Dec 29 2020 09:04:01

%S 0,0,0,1,6,34,179,915,4607,22988,114090,564359,2785921,13735074,

%T 67665208,333211828,1640575047,8077199130,39770520844,195852723348,

%U 964689515033,4752800817185,23422061819883,115456855588378,569293729146929,2807864888917275

%N Number of anti-down steps in all modified skew Dyck paths of semilength n.

%C A modified skew Dyck path is a path in the first quadrant which begins at the origin, ends on the x-axis, consists of steps U=(1,1) (up), D=(1,-1) (down) and A=(-1,1) (anti-down) so that A and D steps do not overlap.

%H Alois P. Heinz, <a href="/A274405/b274405.txt">Table of n, a(n) for n = 0..500</a>

%F a(n) = Sum_{k>0} k * A274404(n,k).

%F a(n) ~ c * 5^n / sqrt(n), where c = 0.0554525135364274199547478570703521322323... . - _Vaclav Kotesovec_, Jun 26 2016

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

%p `if`(t=2, 0, [1, 0]), b(x+1, y+1, 0, n-1)+`if`(t<>1

%p and x>0, (p-> p+[0, p[1]])(b(x-1, y+1, 2, n-1)), 0)+

%p `if`(t<>2 and y>0, b(x+1, y-1, 1, n-1), 0)))

%p end:

%p a:= n-> b(0$3, 2*n)[2]:

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

%t b[x_, y_, t_, n_] := b[x, y, t, n] = If[y > n, 0, If[n == y, If[t == 2, {0, 0}, {1, 0}], b[x + 1, y + 1, 0, n - 1] + If[t != 1 && x > 0, Function[p, p + {0, p[[1]]}][b[x - 1, y + 1, 2, n - 1]], 0] + If[t != 2 && y > 0, b[x + 1, y - 1, 1, n - 1], 0]]];

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

%t a /@ Range[0, 30] (* _Jean-François Alcover_, Dec 29 2020, after _Alois P. Heinz_ *)

%Y Cf. A230823, A274404.

%K nonn

%O 0,5

%A _Alois P. Heinz_, Jun 20 2016

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 May 27 10:04 EDT 2024. Contains 372858 sequences. (Running on oeis4.)