2018 Putnam B Problems/Problem 6
Contents
Problem
Let be the set of sequences of length 2018 whose terms are in the set
and sum to 3860. Prove that the cardinality of
is at most
Solution 1 (Recommended)
Define a random vector \( \mathbf{X} = (X_1, \ldots, X_{2018}) \), where the \( X_i \) are independent and identically distributed with some probability distribution \( p = (p_1, p_2, \ldots, p_7) \) supported on the values \( \{1, 2, 3, 4, 5, 6, 10\} \). Suppose the distribution is chosen such that
This means the expected sum is the target 3860.
The cardinality \( |S| \) is the number of sequences with sum exactly 3860, which is the number of sequences whose empirical distribution matches this mean exactly. By the maximum entropy principle, among all distributions with the same mean, the entropy
is maximized by some distribution that matches the sum constraint.
The number of sequences in \( S \) is at most the number of sequences whose empirical distribution is close to \( p \). Using large deviation bounds or the method of types, the size of \( S \) can be bounded by
Because the sum is fixed, the entropy rate \( H(p) \) relates to the average of \( \log(1/p_k) \) weighted by \( p_k \). By plugging in \( p_k \) chosen optimally to match the average value \( \frac{3860}{2018} \), and computing \( H(p) \), one finds that
(This follows from expressing \( H(p) \) in terms of \( \log 2 \) and the correction factor corresponding to \( \left(\frac{2048}{2018}\right)^{2018} \).)
~Pinotation
Solution 2 (Fast)
Define the generating function
The coefficient of \( x^{3860} \) in \( G(x) \) equals the number of sequences \( |S| \).
By Cauchy's coefficient formula or the standard bound for coefficients, for any positive \( r \),
We can pick \( r > 0 \) that minimizes this ratio.
Note that
Setting \( r \) close to 1 and slightly less than 1 balances the numerator and denominator so that the bound
holds. This can be seen by carefully differentiating and analyzing the function
finding its minimum, and comparing with the bound given.
~Pinotation
Solution 3 (PINOTATION!!!!)
Each sequence has length 2018 with terms from the given set, summing to 3860. Consider the function \( f(a_i) = 2^{a_i} \). For each sequence, the total weight is
By Jensen's inequality, because the exponential function is convex,
Since the average of the \( a_i \) is roughly \( \frac{3860}{2018} \), the correction factor arises naturally as
to balance the overcount from the convexity inequality and to fit the exact constraint on sums.
~Pinotation
Solution 4
Define a probability distribution \( p = (p_1, \ldots, p_7) \) on the set \( \{1, 2, 3, 4, 5, 6, 10\} \) with expectation equal to the average term \( \frac{3860}{2018} \). Consider the random variables \( X_i \) independent and distributed according to \( p \).
The probability that
is bounded by a large deviation or Chernoff bound. The total number of sequences is \( 7^{2018} \), so the number of sequences with sum 3860 is at most
Optimizing \( p \) minimizes \( P\left(\sum X_i = 3860\right) \), and this yields an upper bound that matches
~Pinotation
See Also
Last Question
These problems are copyrighted © by the Mathematical Association of America, as part of the American Mathematics Competitions.