Skip to main content
QUICK REVIEW

[Paper Review] The number of permutations with a given number of sequences

Marcus Kollar|ArXiv.org|Oct 15, 2006
Bayesian Methods and Mixture ModelsComputer Science6 citations
TL;DR

This paper derives explicit closed-form expressions for the number of permutations of $ n $ elements with exactly $ s $ increasing or decreasing runs, denoted $ P(n,s) $, by solving a recurrence via generating functions and orthogonal polynomial techniques. It provides exact formulas for the polynomials $ \psi_i(n,s) $, the generating function $ u_s(x) $, and the numerator polynomial $ \Phi_s(x) $, resolving a problem posed by Canfield and Wilf and correcting prior inaccuracies in the literature.

ABSTRACT

P(n,s) denotes the number of permutations of 1,2,...n that have exactly s sequences. Canfield and Wilf [math.CO/0609704] recently showed that P(n,s) can be written as a sum of s polynomials in n. We determine these polynomials explicitly and also obtain explicit expressions for P(n,s) and its fixed-s generating function u_s(x).

Motivation & Objective

  • To derive explicit, closed-form expressions for $ P(n,s) $, the number of permutations of $ n $ elements with exactly $ s $ runs (maximal increasing or decreasing sequences).
  • To determine the polynomials $ \psi_i(n,s) $ explicitly from the recurrence of Canfield and Wilf, which express $ P(n,s) $ as a sum of terms involving $ (s-i)^n $.
  • To compute the fixed-$ s $ generating function $ u_s(x) = \sum_{n=2}^\infty P(n,s)x^n $ and its numerator polynomial $ \Phi_s(x) $, confirming and extending the rational generating function form $ \Phi_s(x)/\Delta_s(x) $.
  • To correct and validate previous results, particularly those in Carlitz’s work, by providing a rigorous derivation and verifying via computer algebra for $ n,s,i \leq 20 $.

Proposed method

  • Transform the recurrence for $ \psi_i(n,s) $ into a parameterized form using $ \phi_i(n,t) = \psi_i(n,s-i) $, reducing dependence on $ s $.
  • Introduce a generating function $ f(x,n,t) = \sum_i \phi_i(n,t)x^i $, which satisfies a linear partial differential equation involving $ f $, $ x\partial f/\partial x $, and $ n $.
  • Assume a separable solution $ f(x,n,t) = g(x,t) h(x,t)^n $, and solve for $ h(x,t) = (1-x^2)^{1/2} $, leading to a solvable ODE for $ g(x,t) $.
  • Use series expansions for $ (1-x^2)^{(n-3)/2} $ and $ \left( \frac{2}{1+\sqrt{1-x^2}} \right)^t $ to extract coefficients and derive explicit expressions for $ \phi_i(n,t) $, and thus $ \psi_i(n,s) $.
  • Use the explicit $ \psi_i(n,s) $ in the sum $ P(n,s) = \sum_{i=0}^{s-1} \psi_i(n,s)(s-i)^n $ to obtain a closed-form formula for $ P(n,s) $.
  • Derive $ u_s(x) $ by summing the generating function over $ n $, and clear denominators to obtain $ \Phi_s(x) $, verifying its degree and structure.

Experimental results

Research questions

  • RQ1What is the explicit form of the polynomials $ \psi_i(n,s) $ that express $ P(n,s) $ as a sum of $ (s-i)^n $ terms?
  • RQ2Can the fixed-$ s $ generating function $ u_s(x) $ be expressed in closed form, and what is the structure of its numerator $ \Phi_s(x) $?
  • RQ3How can the recurrence for $ \psi_i(n,s) $ be solved analytically to yield exact polynomial expressions in $ n $?
  • RQ4Are the previously reported formulas for $ P(n,s) $, particularly those in Carlitz’s work, correct, and can they be validated or corrected?
  • RQ5What is the precise degree and coefficient structure of $ \Phi_s(x) $, and how does it relate to the denominator $ \Delta_s(x) $?

Key findings

  • The polynomials $ \psi_i(n,s) $ are explicitly given by $ \psi_i(n,s) = K(s-i) \sum_{j=0}^{\lfloor i/2 \rfloor} g_{i,j} p_j(n,s-i) $, where $ K(t) = 2^{-(t-2)} $, $ g_{i,j} $ are coefficients depending on parity, and $ p_j(n,t) $ are convolution sums of binomial and hypergeometric terms.
  • The generating function $ u_s(x) $ is expressed as $ \sum_{i=0}^{s-1} \sum_{k=0}^{\lfloor i/2 \rfloor} \frac{B_{i,k}(x,s-i)}{(1 - (s-i)x)^{k+1}} $, with $ B_{i,k}(x,t) $ involving $ \widetilde{\Phi}_k(tx) $ and binomial coefficients.
  • The numerator polynomial $ \Phi_s(x) $ has degree $ 1 + \lceil s(s+2)/4 \rceil $, and its coefficients are explicitly computed for $ s = 1 $ to $ 10 $, with $ \Phi_1(x) = 2x^2 $, $ \Phi_2(x) = 4x^3 $, $ \Phi_3(x) = 2x^4(5 - 6x) $, etc.
  • The polynomial $ \widetilde{A}_k(z) $, used in the derivation of $ \widetilde{\Phi}_k(z) $, has a factor $ (1+z)^{k+1} $, and its coefficients are derived via a WZ-certified identity.
  • The final expression for $ \Phi_s(x) $ is obtained by clearing denominators in the rational generating function, confirming the form $ \Phi_s(x)/\Delta_s(x) $ with $ \Delta_s(x) = \prod_{i=0}^{s-1} (1 - (s-i)x)^{\lfloor i/2 \rfloor + 1} $.
  • The results are validated computationally for $ n,s,i \leq 20 $, confirming correctness and resolving inaccuracies in earlier literature, particularly in Carlitz’s formulas.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.