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.

A316294 Total number of permutations p of [k] such that n is the maximum of the partial sums of the signed up-down jump sequence of 0,p summed over all k >= 0.

This page as a plain text file.
%I A316294 #11 Sep 01 2021 17:10:39
%S A316294 1,1,3,19,258,7406,442668,54371100,13585980916,6859762797636,
%T A316294 6969135518632452,14209819222900305044,58061006907633910998660,
%U A316294 474996314819118381967232244,7776635831062534849079443379908,254723669580125156112963535996038036
%N A316294 Total number of permutations p of [k] such that n is the maximum of the partial sums of the signed up-down jump sequence of 0,p summed over all k >= 0.
%C A316294 An up-jump j occurs at position i in p if p_{i} > p_{i-1} and j is the index of p_i in the increasingly sorted list of those elements in {p_{i}, ..., p_{n}} that are larger than p_{i-1}.  A down-jump -j occurs at position i in p if p_{i} < p_{i-1} and j is the index of p_i in the decreasingly sorted list of those elements in {p_{i}, ..., p_{n}} that are smaller than p_{i-1}. First index in the lists is 1 here.
%H A316294 Alois P. Heinz, <a href="/A316294/b316294.txt">Table of n, a(n) for n = 0..40</a>
%p A316294 b:= proc(u, o, c, k) option remember;
%p A316294       `if`(c>k, 0, `if`(u+o=0, 1,
%p A316294        add(b(u-j, o-1+j, c+j, k), j=1..u)+
%p A316294        add(b(u+j-1, o-j, c-j, k), j=1..o)))
%p A316294     end:
%p A316294 a:= n-> add(b(k, 0$2, n)-b(k, 0$2, n-1), k=n..n*(n+1)/2):
%p A316294 seq(a(n), n=0..15);
%t A316294 b[u_, o_, c_, k_] := b[u, o, c, k] =
%t A316294      If[c > k, 0, If[u + o == 0, 1,
%t A316294      Sum[b[u - j, o - 1 + j, c + j, k], {j, u}] +
%t A316294      Sum[b[u + j - 1, o - j, c - j, k], {j, o}]]];
%t A316294 a[n_] := Sum[b[k, 0, 0, n] - b[k, 0, 0, n-1], {k, n, n(n+1)/2}];
%t A316294 Table[a[n], {n, 0, 15}] (* _Jean-François Alcover_, Sep 01 2021, after _Alois P. Heinz_ *)
%Y A316294 Column sums of A316292 or A316293.
%K A316294 nonn
%O A316294 0,3
%A A316294 _Alois P. Heinz_, Jun 28 2018