Three's a crowd Reloaded

Let A n A_{n} be the number of ways we can arrange n n identical black balls and n n identical red balls in a line, such that no more than 2 balls of the same color ever appear in a row.

If the limit of lim n A n + 1 A n A n = a + b c , \lim_{n\to\infty} \dfrac {A_{n+1} - A_{n}} {A_{n}}= \dfrac {a + \sqrt b}{c}, where a , b , a, b, and c c are positive integers with a a and c c coprime, submit your answer as a + b + c a + b + c .


Inspiration .

In celebration of the 100 followers reached event.


The answer is 8.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Matt Janko
Apr 26, 2020

The interesting part of this problem is finding the generating function of a n a_n , which turns out to be a ( x ) = ( 1 x ) 2 1 + x + x 2 x 2 1 3 x + x 2 1 x 2 . a(x) = \frac {(1 - x)^2 \sqrt{1 + x + x^2}}{x^2 \sqrt{1 - 3x + x^2}} - \frac 1{x^2}. From this closed form, we can figure out that the radius of convergence for the series a n x n \sum a_n x^n is ( 3 5 ) / 2 (3 - \sqrt 5)/2 . The asymptotic growth rate of a n a_n is the reciprocal of this radius, so lim n a n + 1 a n a n = ( lim n a n + 1 a n ) 1 = ( 3 5 2 ) 1 1 = 1 + 5 2 . \lim_{n \rightarrow \infty} \frac {a_{n + 1} - a_n}{a_n} = \left( \lim_{n \rightarrow \infty} \frac {a_{n + 1}}{a_n} \right) - 1 = \left( \frac {3 - \sqrt 5}2 \right)^{-1} - 1 = \frac {1 + \sqrt 5}2.

Now we will show that a ( x ) a(x) is in fact the generating function of a n a_n . Let r m , n r_{m,n} and b m , n b_{m,n} denote the numbers of arrangements with m m red balls and n n black balls ending with a red ball and a black ball, respectively, and let r ( x , y ) r(x,y) and b ( x , y ) b(x,y) be the generating functions of r m , n r_{m,n} and b m , n b_{m,n} . We can obtain any sequence ending in a red ball by appending one or two red balls to the empty sequence or to a sequence ending with a black ball (vice versa for sequences ending in a black ball). This recurrence relation can be expressed in terms of the generating functions with the equations r ( x , y ) = [ 1 + b ( x , y ) ] ( x + x 2 ) and b ( x , y ) = [ 1 + r ( x , y ) ] ( y + y 2 ) . r(x,y) = \big[ 1 + b(x,y) \big] (x + x^2) \quad \text{and} \quad b(x,y) = \big[ 1 + r(x,y) \big] (y + y^2). Let s m , n s_{m,n} denote the total number of arrangements with m m red balls and n n black balls. Then s m , n s_{m,n} is equal to 1 1 (if m = n = 0 m = n = 0 ) or to r m , n + b m , n r_{m,n} + b_{m,n} , so the generating function of s m , n s_{m,n} is s ( x , y ) = 1 + r ( x , y ) + b ( x , y ) s(x,y) = 1 + r(x,y) + b(x,y) . From the recurrence relation between r ( x , y ) r(x,y) and b ( x , y ) b(x,y) , we can show s ( x , y ) = ( 1 + x + x 2 ) ( 1 + y + y 2 ) 1 ( x + x 2 ) ( y + y 2 ) . s(x,y) = \frac {(1 + x + x^2)(1 + y + y^2)}{1 - (x + x^2)(y + y^2)}. This generating function has a bivariate series s m , n x m y n \sum s_{m,n} x^m y^n , and we are interested in the diagonal coefficients of this series because s n , n = a n s_{n,n} = a_n . Define the function g ( z , x ) = s ( z x , x / z ) = ( z 2 + z x + x ) ( 1 + z x + z 2 x ) z 2 ( 1 x x 2 ) z ( 1 + z 2 ) x x , g(z,x) = s(z \sqrt x, \sqrt{x}/z) = \frac {(z^2 + z \sqrt x + x)(1 + z \sqrt x + z^2 x)}{z^2(1 - x - x^2) - z(1 + z^2)x \sqrt x}, and notice that the series for g g can be regarded as a Laurent series in z z whose coefficients are themselves power series in x \sqrt x : g ( z , x ) = m , n 0 s m , n ( x ) m + n z m n = k Z ( m n = k s m , n ( x ) m + n ) z k . g(z,x) = \sum_{m,n \geq 0} s_{m,n} \left(\sqrt x\right)^{m + n} z^{m - n} = \sum_{k \in \mathbb{Z}} \left( \sum_{m - n = k} s_{m,n} \left( \sqrt x \right)^{m + n} \right) z^k. When m = n m = n , we have m n = 0 s m , n ( x ) m + n = n 0 a n x n , \sum_{m - n = 0} s_{m,n} \left( \sqrt x \right)^{m + n} = \sum_{n \geq 0} a_n x^n, so the power series of a n a_n is the coefficient of z 0 z^0 in the Laurent series for g g . The Cauchy integral formula allows us to find coefficients of the Laurent series for g g using contour integrals of g g . For a suitably small counterclockwise path γ \gamma around z = 0 z = 0 along which the Laurent series of g g converges, n = 0 a n x n = 1 2 π i γ g ( z ) z d z , \sum_{n = 0}^\infty a_n x^n = \frac 1{2 \pi i} \int_\gamma \frac {g(z)}z\, dz, and by the residue theorem, γ g ( z ) z d z = 2 π i Res z k ( x ) ( g ( z ) z ) , \int_\gamma \frac {g(z)} z\, dz = 2\pi i \sum \text{Res}_{z_k(x)} \left( \frac {g(z)}z \right), where the summation is taken over all the poles z k ( x ) z_k(x) of g ( z ) / z g(z)/z for which z k ( x ) 0 z_k(x) \rightarrow 0 as x 0 x \rightarrow 0 . Altogether, this means that we can find a n x n \sum a_n x^n by adding the residues of certain poles of g ( z ) / z g(z)/z . To find the poles, multiply the denominator of g g by z z , set the product equal to 0, and solve for z z . There are three solutions, but only two of them have a limit of 0 as x 0 x \rightarrow 0 , z 0 ( x ) = 0 and z 1 ( x ) = 1 x x 2 1 2 x x 2 2 x 3 + x 4 2 x x , z_0(x) = 0 \quad \text{and} \quad z_1(x) = \frac {1 - x - x^2 - \sqrt{1 - 2x - x^2 - 2x^3 + x^4}}{2x \sqrt x}, whose residues are 1 x 2 and ( 1 x ) 2 1 + x + x 2 x 2 1 3 x + x 2 . -\frac 1{x^2} \quad \text{and} \quad \frac {(1 - x)^2 \sqrt{1 + x + x^2}}{x^2 \sqrt{1 - 3x + x^2}}. Thus we have shown that a ( x ) a(x) is the generating function of a n a_n as we claimed: n = 0 a n x n = ( 1 x ) 2 1 + x + x 2 x 2 1 3 x + x 2 1 x 2 = a ( x ) . \sum_{n = 0}^\infty a_n x^n = \frac {(1 - x)^2 \sqrt{1 + x + x^2}}{x^2 \sqrt{1 - 3x + x^2}} - \frac 1{x^2} = a(x).

This application of complex analysis was new to me when I solved this problem. The procedure is outlined by Richard Stanley in Section 6.3 of Enumerative Combinatorics . It is also discussed in some detail by Qiaochu Yuan in a post on his blog and it is applied directly to a variation of the current problem in a post on StackExchange .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...