Processing math: 100%

Saturday, 17 February 2007

co.combinatorics - Number of permutations with a specified number of fixed points

The "semi-exponential" generating function for these is



sumin=0nftysumnk=0F(k,n)znukovern!=exp((u1)z)over1z



which follows from the exponential formula.



These numbers are apparently called the rencontres numbers although I'm not sure how standard that name is.



Now, how do we get a formula for these numbers out of this? First note that



exp((u1)z)=1+(u1)z+(u1)2over2!z2+(u1)3over3!z3+cdots



and therefore the "coefficient" (actually a polynomial in u) of zn in exp((u1)z)/(1z) is



Pn(u)=1+(u1)+(u1)2over2!+cdots+(u1)novern!=sumnj=0(u1)joverj!



since division of a generating function by 1z has the effect of taking partial sums of the coefficients.



The coefficient of uk in Pn(u) (which I'll denote [uk]Pn(u), where [uk] denotes taking the uk-coefficient) is then



[uk]Pn(u)=sumnj=0[uk](u1)joverj!



But we only need to do the sum for j=k,ldots,n; the lower terms are zero, since they are the uk-coefficient of a polynomial of degree less than k. So



[uk]Pn(u)=sumnj=k[uk](u1)joverj!



and by the binomial theorem,



[uk]Pn(u)=sumnj=k(1)jkoverk!(jk)!



Finally, F(k,n)=n![uk]Pn(u), and so we have



F(k,n)=n!sumnj=k(1)jkoverk!(jk)!

No comments:

Post a Comment