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.

A320290 Number of permutations p of [2n] such that in 0p the largest up-jump equals n and no down-jump is larger than 2.

This page as a plain text file.
%I A320290 #21 Apr 21 2022 05:25:09
%S A320290 1,1,9,156,3098,69274,1626122,39892080,1004867492,25886899652,
%T A320290 677767802220,17984050212906,482214668573802,13042214648300918,
%U A320290 355247290177412584,9733704443846822462,268026951144933433138,7411550898419782031320,205686202884689885529314
%N A320290 Number of permutations p of [2n] such that in 0p the largest up-jump equals n and no down-jump is larger than 2.
%H A320290 Alois P. Heinz, <a href="/A320290/b320290.txt">Table of n, a(n) for n = 0..250</a>
%F A320290 a(n) = A291680(2n,n).
%p A320290 b:= proc(u, o, k) option remember; `if`(u+o=0, 1,
%p A320290       add(b(u-j, o+j-1, k), j=1..min(2, u))+
%p A320290       add(b(u+j-1, o-j, k), j=1..min(k, o)))
%p A320290     end:
%p A320290 a:= n-> `if`(n=0, 1, b(0, 2*n, n)-b(0, 2*n, n-1)):
%p A320290 seq(a(n), n=0..20);
%t A320290 b[u_, o_, k_] := b[u, o, k] = If[u + o == 0, 1,
%t A320290      Sum[b[u - j, o + j - 1, k], {j, 1, Min[2, u]}] +
%t A320290      Sum[b[u + j - 1, o - j, k], {j, 1, Min[k, o]}]];
%t A320290 a[n_] := If[n == 0, 1, b[0, 2*n, n] - b[0, 2*n, n - 1]];
%t A320290 Table[a[n], {n, 0, 20}] (* _Jean-François Alcover_, Apr 21 2022, after _Alois P. Heinz_ *)
%Y A320290 Cf. A291680.
%K A320290 nonn
%O A320290 0,3
%A A320290 _Alois P. Heinz_, Oct 27 2018