Sums That Know Their Parts
Let be a fixed positive integer. How many ways are there to write as a sum of positive integers
where is an arbitrary positive integer and ?
For example, with there are four ways: .
(Putnam 2003, A1)
Answer: Sums That Know Their Parts
Key Idea / Intuition
The constraint forces all the to be nearly equal โ they can take at most two consecutive integer values. So a valid partition of into parts is really just a way to write where parts equal and parts equal . The number of such decompositions turns out to equal the number of divisors of .
The key observation: a valid representation is completely determined by the choice of (the number of parts), because once you fix , the Euclidean division (with ) uniquely determines and , hence the entire multiset .
Formal Proof / Solution
Step 1: Characterize valid representations.
Suppose with .
Since consecutive terms differ by at most , and the sequence is non-decreasing with max , every is either or . More precisely, there exist integers and such that:
- of the parts equal , and
- of the parts equal ,
giving , i.e., and .
Step 2: Each gives exactly one representation.
For any with , the Euclidean division with is unique. This uniquely defines the multiset of parts (all 's and 's). We need , which holds iff .
So there is exactly one valid representation for each . But wait โ do we require all parts to be positive? Yes: iff . โ
Step 3: Count the representations.
Every yields a valid representation. But wait โ should we count separately representations that differ only by ?
Let's verify with :
- : โ
- : โ
- : โ
- : โ
That's 4 representations for , and indeed all values are valid.
Step 4: Identify which are valid โ the divisor connection.
Actually, let's be more careful. A representation has (all parts equal) if and only if . In that case it's a uniform partition. If , the parts are not all equal but still valid. Every gives a valid, distinct representation (different means different number of parts).
Therefore, the total number of valid representations equals .
Check: : only itself. โ ย : and . โ ย : , , . โ ย : four ways, as given. โ
Source: Putnam 2003, Problem A1