Friday, October 4, 2019

discrete mathematics - Prove summation related to cycles



Let br(n,k) be the number of n-permutations with k cycles, in which numbers 1,2,,r are in one cycle.



Prove that for nr there is:



nk=1br(n,k)xk=(r1)!x¯n(x+1)¯r1



Answer



It should be clear by inspection that
br(n,k)=(r1)![nrk1].


The sum then becomes
(r1)!nk=1xk[nrk1].



Recall the bivariate generating function of the Stirling numbers of
the first kind, which is
G(z,u)=exp(ulog11z).




This yields the following for the inner sum:
nk=1xk(nr)![znr][uk1]G(z,u)=(nr)![znr]nk=1xk1(k1)!(log11z)k1.



Now use the fact that log11z starts at z to see that
terms with k>nr+1 do not contribute to [znr] to get
(nr)![znr]k=1xk1(k1)!(log11z)k1.




This simplifies to
(nr)![znr]xexp(xlog11z)=x×(nr)![znr](11z)x=x×(nr)!×(nr+x1nr)=x×(nr1+x)(nr1+x1)(nr1+x2)x=x×x¯nr.



We thus have for the sum the formula
nk=1br(n,k)xk=(r1)!×x×x¯nr.




I verified this by going back to the basics and implementing a Maple
program that factors permutations. It confirms the above formula for
small permutations (n<10). (This code is not optimized.)




with(combinat);

pet_disjcyc :=
proc(p)

local dc, pos;

dc := convert(p, 'disjcyc');

for pos to nops(p) do
if p[pos] = pos then
dc := [op(dc), [pos]];
fi;
od;


dc;
end;

gf :=
proc(n, r)
option remember;
local p, res, f, targ, q;

res := 0; targ := {seq(q, q=1..r)};


for p in permute(n) do
f := pet_disjcyc(p);

for cyc in f do
if convert(cyc, set) = targ then
res := res + x^nops(f);
break;
fi;
od;
od;


res;
end;

bs := (n,r)-> (r-1)!* sum(x^k*abs(stirling1(n-r,k-1)),k=1..n);
bsp := (n, r) -> (r-1)! * x * pochhammer(x, n-r);


Remark. This would seem to be a very basic calculation if the ordinary generating function instead of the exponential one is used. The OGF is in terms of the rising factorial, done. Very simple indeed.


No comments:

Post a Comment

analysis - Injection, making bijection

I have injection f:AB and I want to get bijection. Can I just resting codomain to f(A)? I know that every function i...