OFFSET
1,4
LINKS
Allan Bickle, A Survey of Maximal k-degenerate Graphs and k-Trees, Theory and Applications of Graphs 0 1 (2024) Article 5.
Saverio Caminiti and Emanuele G. Fusco, On the Number of Labeled k-arch Graphs, Journal of Integer Sequences, Vol 10 (2007), Article 07.7.5.
FORMULA
The number of labeled 2-arch graphs with n>3 nodes is given by f(n,2,n-2-1,0,2) where f is the recursive function described by the PARI/GP code attached below.
PROG
(PARI) f(n, k, i, u, j)={ local(s=0); if (i==1, binomial(n-u, j)*binomial(u, k-j), for (c=0, min(k, n-(i-1)-(u+j)), s+=f(n, k, i-1, u+j, c) ); binomial(n-u, j)*binomial(u, k-j)*s ) }
(PARI) \\ faster version with memoization.
a(n, k=2)={ my(Cache=Map());
my(f(n, k, i, u, j)=my(hk=Vecsmall([n, k, i, u, j]), z);
if(!mapisdefined(Cache, hk, &z),
z = binomial(n-u, j)*binomial(u, k-j)*if(i==1, 1, sum(c=0, min(k, n-(i-1)-(u+j)), self()(n, k, i-1, u+j, c) ));
mapput(Cache, hk, z)); z);
if(n>k+1, f(n, k, n-k-1, 0, k), n>=k)
} \\ Andrew Howroyd, Nov 07 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Saverio Caminiti and Emanuele G. Fusco (fusco(AT)di.uniroma1.it), Sep 18 2007
EXTENSIONS
Terms a(11) and beyond from Andrew Howroyd, Nov 07 2019
STATUS
approved