Maths Olympiad Prep

Library / /24 of 45

, 2010

Combinatorics Difficulty 8.5 Shortlist Prove it United States

Let mm, nn be positive integers with mnm \ge n, and let SS be the set of all ordered nn-tuples (a1,a2,,an)(a_1, a_2, \dots, a_n) of positive integers such that a1+a2++an=ma_1 + a_2 + \dots + a_n = m. Show that
S1a12a2nan=(nn)nm(nn1)(n1)m++(1)n2(n2)2m++(1)n1(n1). \sum_{S} 1^{a_1} 2^{a_2} \cdots n^{a_n} = \binom{n}{n} n^m - \binom{n}{n-1} (n-1)^m + \cdots + (-1)^{n-2} \binom{n}{2} 2^m + \cdots + (-1)^{n-1} \binom{n}{1}.

Solutions — 2

Solution 1

Let m=k+nm = k + n, and let TT be the set of all nn-term sequences of nonnegative integers (b1,b2,,bn)(b_1, b_2, \dots, b_n) such that b1+b2++bn=kb_1 + b_2 + \dots + b_n = k. It suffices for us to show that
n!T1b12b2nbn=(nn)nk+n(nn1)(n1)k+n++(1)n2(n2)2k+n++(1)n1(n1). n! \sum_{T} 1^{b_1} 2^{b_2} \cdots n^{b_n} = \binom{n}{n} n^{k+n} - \binom{n}{n-1} (n-1)^{k+n} + \cdots + (-1)^{n-2} \binom{n}{2} 2^{k+n} + \cdots + (-1)^{n-1} \binom{n}{1}.
We claim that both sides of the desired equation count the number of ways to color k+nk+n objects with nn colors such that each color is used at least once. For 1tn1 \le t \le n, the number of ways to color k+nk+n objects with tt colors is tk+nt^{k+n}, so the principle of inclusion-exclusion shows exactly that the right hand side counts these colorings.
It suffices to show that the left hand side also counts these colorings. Label the objects 11, 22, \dots, k+nk+n in some order, and, for 1in1 \le i \le n, let cic_i be the smallest object of color ii. Take bi=ci+1cib_i = c_{i+1} - c_i, where we let cn+1=n+k+1c_{n+1} = n+k+1. Then, notice that any such coloring is specified uniquely by the following data: (a) the order in which the colors first appear, (b) the number of objects between cic_i and ci+1c_{i+1} for each ii, where we take cn+1=n+k+1c_{n+1} = n+k+1, and (c) the colors of the objects between cic_i and ci+1c_{i+1}. We now count how many ways these data can be chosen. There are n!n! choices for datum (a), and it is independent of (b) and (c). Datum (b) is specified uniquely by a choice of (b1,b2,,bn)(b_1, b_2, \dots, b_n) such that b1+b2++bn=kb_1 + b_2 + \dots + b_n = k, that is, an element of TT. Given such a choice of (b1,b2,,bn)(b_1, b_2, \dots, b_n), there are 1b12b2nbn1^{b_1} 2^{b_2} \dots n^{b_n} ways to color the intermediate objects, as each of the bib_i between cic_i and ci+1c_{i+1} admits ii choices of color since only ii colors appear before ci+1c_{i+1}. Summing over all choices of (a), (b), and (c), we see that the number of colorings of this type is
n!T1b12b2nbn, n! \sum_{T} 1^{b_1} 2^{b_2} \dots n^{b_n},
which matches the left hand side of the desired equation, completing the proof.

Solution 2

Denote by SmS_m the set of all nn-term sequences of positive integers (a1,a2,,an)(a_1, a_2, \dots, a_n) such that a1+a2++an=ma_1 + a_2 + \dots + a_n = m. Let xm=Sm1a12a2nanx_m = \sum_{S_m} 1^{a_1} 2^{a_2} \dots n^{a_n}, with xm=0x_m = 0 if m<nm < n, and consider the corresponding generating function
Fn(t)=x0+x1t+x2t2+ F_n(t) = x_0 + x_1 t + x_2 t^2 + \dots
Computing, we find that
Fn(t)=(t+t2+)(2t+4t2+)(nt+n2t2+)=t1t2t12tnt1nt=n!tn(1t)(12t)(1nt). \begin{aligned} F_n(t) &= (t + t^2 + \dots)(2t + 4t^2 + \dots) \dots (nt + n^2 t^2 + \dots) \\ &= \frac{t}{1-t} \cdot \frac{2t}{1-2t} \dots \frac{nt}{1-nt} \\ &= \frac{n! \cdot t^n}{(1-t)(1-2t)\dots(1-nt)}. \end{aligned}
Consider now the two-variable generating function Gn(t,y)G_n(t, y) defined recursively by
G0(t,y)=k=0yktk=11yt G_0(t, y) = \sum_{k=0}^{\infty} y^k t^k = \frac{1}{1 - yt}
and
Gn(t,y)=Gn1(t,y+1)Gn1(t,y) for n>0. G_n(t, y) = G_{n-1}(t, y+1) - G_{n-1}(t, y) \text{ for } n > 0.
We may identify the coefficient of tmt^m in Gn(t,0)G_n(t, 0) as the nthn^{\text{th}} forward finite difference of the function f(y)=ymf(y) = y^m. Therefore, it is given by
(nn)nm(nn1)(n1)m++(1)n2(n2)2m+(1)n1(n1). \binom{n}{n} n^m - \binom{n}{n-1} (n-1)^m + \dots + (-1)^{n-2} \binom{n}{2} 2^m + (-1)^{n-1} \binom{n}{1}.
(If the reader is not familiar with the theory of finite differences, the claim also follows from a straightforward induction.)
We have just shown that the two sides of the desired equality are the coefficients of tmt^m in the generating functions Fn(t)F_n(t) and Gn(t,0)G_n(t, 0). Hence, it now suffices to show that Fn(t)=Gn(t,0)F_n(t) = G_n(t, 0). For this, we will show that
Gn(t,y)=n!tni=0n(1(i+y)t) G_n(t, y) = \frac{n! \cdot t^n}{\prod_{i=0}^{n} (1 - (i + y)t)}
which would complete the proof, as this expression easily reduces to Fn(t)F_n(t) upon taking y=0y = 0.

We proceed by induction on nn. The base case n=0n = 0 is evident. Now, suppose the claim holds for some nn; by the definition of Gn(t,y)G_n(t, y), we may compute
Gn+1(t,y)=Gn(t,y+1)Gn(t,y)=n!tni=0n(1(i+y+1)t)n!tni=0n(1(i+y)t)=n!tni=1n(1(i+y)t)[11(y+n+1)t11yt]=n!tn(n+1)ti=0n+1(1(i+y)t)=(n+1)!tn+1i=0n+1(1(i+y)t), \begin{align*} G_{n+1}(t, y) &= G_n(t, y+1) - G_n(t, y) \\ &= \frac{n! \cdot t^n}{\prod_{i=0}^{n} (1 - (i+y+1)t)} - \frac{n! \cdot t^n}{\prod_{i=0}^{n} (1 - (i+y)t)} \\ &= \frac{n! \cdot t^n}{\prod_{i=1}^{n} (1 - (i+y)t)} \left[ \frac{1}{1 - (y+n+1)t} - \frac{1}{1-yt} \right] \\ &= \frac{n! \cdot t^n (n+1)t}{\prod_{i=0}^{n+1} (1 - (i+y)t)} \\ &= \frac{(n+1)! \cdot t^{n+1}}{\prod_{i=0}^{n+1} (1 - (i+y)t)}, \end{align*}
which completes the induction.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.