Problem 11776
(American Mathematical Monthly, Vol.121, May 2014) Proposed by D. Beckwith (USA).
Given urns U1, . . . , Un in a line, and plenty of identical blue and identical red balls, let an be the number of ways to put balls into the urns subject to the conditions that
(i) each urn contains at most one ball,
(ii) any urn containing a red ball is next to exactly one urn containing a blue ball, and (iii) no two urns containing a blue ball are adjacent.
(a) Show that
∞
X
n=0
anxn = 1 + x + 2x2 1 − x − x2− 3x3. (b) Show that
an=X
j≥0
X
m≥0
4jn − 2m j
m j
+n − 2m − 1 j
m j
+ 2n − 2m j
m − 1 j
.
Solution proposed by Roberto Tauraso, Dipartimento di Matematica, Universit`a di Roma “Tor Vergata”, via della Ricerca Scientifica, 00133 Roma, Italy.
Two non-empty urns belong to the same connected component if also the urns between them are non-empty. Let ck be the number of ways to put the balls in a connected component of k urns. It is easy to see that when k ≡ 1 (mod 3) then ck = 1:
B, BRRB, BRRBRRB, BRRBRRBRRB, BRRBRRBRRBRRB, . . .
Moreover, if k ≡ 2 (mod 3) then a disposition can be obtained from one of size k − 1 by adding a ball R to the left or to the right, so ck= 2. On the other hand, if k ≡ 0 (mod 3) then a disposition can be obtained from one of size k − 2 by adding a two balls R to the left and to the right, so ck= 1.
It follows that
C(x) =X
k≥1
ckxk= x
1 − x+ x2
1 − x3 =x(1 + x)2 1 − x3 .
Let us assume that a disposition has j connected components of total size k. Let ti be the number of empty urns between the (i − 1)th and the ith components for i = 1, . . . , j + 1. Then ti ≥ 1 for i = 2, . . . , j and the number of dispositions of this kind is
n − k + 1 j
X
k1+k2+···+kj=k j
Y
i=1
cki= [xk]n − k + 1 j
Cj(x)
Hence
an=X
k≥0
[xk]X
j≥0
n − k + 1 j
Cj(x) =
n
X
k=0
[xk](1 + C(x))n−k+1
= [xn]
n
X
k=0
(1 + C(x))n−k+1xn−k= [xn]X
k≥0
(1 + C(x))k+1xk
= [xn] 1 + C(x)
1 − x(1 + C(x)) = [xn] 1 + x + 2x2 1 − x − x2− 3x3 and (a) is proved.
As regards (b), we observe that for r ≥ 0, X
n≥0
n − r j
xn = xr+j (1 − x)j+1. Therefore, for a, b ≥ 0,
X
n≥0
X
j≥0
X
m≥0
4jn − 2m − a j
m − b j
xn= X
m≥0
X
j≥0
m − b j
4jX
n≥0
n − 2m − a j
xn
= xa 1 − x
X
m≥0
x2mX
j≥0
m − b j
4x 1 − x
j
= xa 1 − x
X
m≥b
x2m
1 + 4x 1 − x
m−b
= xa+2b 1 − x
X
m≥b
x2(1 + 3x) 1 − x
m−b
= xa+2b
1 − x · 1 1 − x2(1+3x)1−x
= xa+2b 1 − x − x2− 3x3. Thus (b) follows from (a):
[xn]X
n≥0
X
j≥0
X
m≥0
h . . .i
= [xn] 1 + x + 2x2
1 − x − x2− 3x3 = an.