Olympiad Maths Prep

Track / Stage 6 / 396 of 400 #1396 of 2000

Problem 1396

National olympiad, first round
Number theory Difficulty 7.0 Prove it

Suppose that p(n)p(n) is the number of ways to express nn as a sum of some naturall numbers (the two representations 4=1+1+24=1+1+2 and 4=1+2+14=1+2+1 are considered the same). Prove that for an infinite number of nn's p(n)p(n) is even and for an infinite number of nn's p(n)p(n) is odd.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. Define the partition function and generating functions:
Let p(n) p(n) be the number of ways to express n n as a sum of natural numbers, where the order of summands does not matter. The generating function for p(n) p(n) is given by:
n0p(n)xn=n111xn \sum_{n \geq 0} p(n) x^n = \prod_{n \geq 1} \frac{1}{1 - x^n}

2. Express the generating function for partitions into distinct parts:
Let D(n) D(n) be the number of ways to express n n as a sum of distinct positive integers. The generating function for D(n) D(n) is:
n0D(n)xn=n1(1+xn) \sum_{n \geq 0} D(n) x^n = \prod_{n \geq 1} (1 + x^n)
Using the identity for the product of sums:
n1(1+xn)=n11x2n1xn \prod_{n \geq 1} (1 + x^n) = \prod_{n \geq 1} \frac{1 - x^{2n}}{1 - x^n}

3. Express the generating function for partitions into odd parts:
Let O(n) O(n) be the number of ways to express n n as a sum of odd positive integers. The generating function for O(n) O(n) is:
n0O(n)xn=n011x2n+1 \sum_{n \geq 0} O(n) x^n = \prod_{n \geq 0} \frac{1}{1 - x^{2n+1}}

4. Equate the generating functions:
By the Pentagonal Number Theorem, we have:
n1(1xn)=nZ(1)nx(3n2+n)/2 \prod_{n \geq 1} (1 - x^n) = \sum_{n \in \mathbb{Z}} (-1)^n x^{(3n^2 + n)/2}
This identity helps in understanding the parity of p(n) p(n) .

5. Kolberg's result:
Kolberg's result states that for an infinite number of n n , p(n) p(n) is even, and for an infinite number of n n , p(n) p(n) is odd. This is based on the identities:
n0p(n)xn=n111xn \sum_{n \geq 0} p(n) x^n = \prod_{n \ge 1} \frac{1}{1 - x^n}
and
n1(1xn)=nZ(1)nx(3n2+n)/2 \prod_{n \ge 1} (1 - x^n) = \sum_{n \in \mathbb{Z}} (-1)^n x^{(3n^2 + n)/2}

6. Conclusion:
The parity of p(n) p(n) is a complex problem, but Kolberg's proof shows that there are infinitely many n n for which p(n) p(n) is even and infinitely many n n for which p(n) p(n) is odd.

\blacksquare

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.