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!)
A324429 Number T(n,k) of labeled cyclic chord diagrams having n chords and minimal chord length k (or k=0 if n=0); triangle T(n,k), n>=0, 0<=k<=n, read by rows. 12

%I #24 Apr 27 2020 06:32:13

%S 1,0,1,0,2,1,0,11,3,1,0,74,24,6,1,0,652,225,57,10,1,0,7069,2489,678,

%T 141,17,1,0,90946,32326,9375,2107,352,28,1,0,1353554,483968,146334,

%U 35568,6722,832,46,1,0,22870541,8211543,2555228,661329,137225,21510,1973,75,1

%N Number T(n,k) of labeled cyclic chord diagrams having n chords and minimal chord length k (or k=0 if n=0); triangle T(n,k), n>=0, 0<=k<=n, read by rows.

%C T(n,k) is defined for all n,k >= 0. The triangle contains only the terms with 0 <= k <= n. T(n,k) = 0 for k > n.

%H Alois P. Heinz, <a href="/A324429/b324429.txt">Rows n = 0..19, flattened</a>

%F T(n,k) = A324428(n,k) - A324428(n,k+1) for k > 0, T(n,0) = A000007(n).

%e Triangle T(n,k) begins:

%e 1;

%e 0, 1;

%e 0, 2, 1;

%e 0, 11, 3, 1;

%e 0, 74, 24, 6, 1;

%e 0, 652, 225, 57, 10, 1;

%e 0, 7069, 2489, 678, 141, 17, 1;

%e 0, 90946, 32326, 9375, 2107, 352, 28, 1;

%e 0, 1353554, 483968, 146334, 35568, 6722, 832, 46, 1;

%e ...

%p b:= proc(n, f, m, l, j) option remember; (k-> `if`(n<add(i, i=f)+m+

%p add(i, i=l), 0, `if`(n=0, 1, add(`if`(f[i]=0, 0, b(n-1,

%p subsop(i=0, f), m+l[1], [subsop(1=[][], l)[], 0], max(0, j-1))),

%p i=max(1, j+1)..min(k, n-1))+`if`(m=0, 0, m*b(n-1, f, m-1+l[1],

%p [subsop(1=[][], l)[], 0], max(0, j-1)))+b(n-1, f, m+l[1],

%p [subsop(1=[][], l)[], 1], max(0, j-1)))))(nops(l))

%p end:

%p A:= (n, k)-> `if`(n=0 or k<2, doublefactorial(2*n-1),

%p b(2*n-k+1, [1$k-1], 0, [0$k-1], k-1)):

%p T:= (n, k)-> `if`(n=k, 1, A(n, k)-A(n, k+1)):

%p seq(seq(T(n, k), k=0..n), n=0..10);

%t b[n_, f_List, m_, l_List, j_] := b[n, f, m, l, j] = Function[k, If[n < Total[f] + m + Total[l], 0, If[n == 0, 1, Sum[If[f[[i]] == 0, 0, b[n - 1, ReplacePart[f, i -> 0], m + l[[1]], Append[ReplacePart[l, 1 -> Nothing], 0], Max[0, j - 1]]], {i, Max[1, j + 1], Min[k, n - 1]}] + If[m == 0, 0, m*b[n - 1, f, m - 1 + l[[1]], Append[ReplacePart[l, 1 -> Nothing], 0], Max[0, j-1]]] + b[n-1, f, m + l[[1]], Append[ReplacePart[ l, 1 -> Nothing], 1], Max[0, j - 1]]]]][Length[l]];

%t A[n_, k_] := If[n == 0 || k < 2, 2^(n-1) Pochhammer[3/2, n-1], b[2n-k+1, Table[1, {k - 1}], 0, Table[0, {k - 1}], k - 1]];

%t T[n_, k_] := If[n == k, 1, A[n, k] - A[n, k + 1]];

%t Table[T[n, k], {n, 0, 10}, {k, 0, n}] // Flatten (* _Jean-François Alcover_, Apr 27 2020, after _Alois P. Heinz_ *)

%Y Columns k=0-10 give: A000007, A324445, A324446, A324447, A324448, A324449, A324450, A324451, A324452, A324453, A324454.

%Y Row sums give A001147.

%Y Main diagonal gives A000012.

%Y T(n+1,n) gives A001610.

%Y Cf. A293157, A293881, A324428.

%K nonn,tabl

%O 0,5

%A _Alois P. Heinz_, Feb 27 2019

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 23 13:38 EDT 2024. Contains 371914 sequences. (Running on oeis4.)