blob: 3d572c71232f9e06b7c943d5f9b1140d04a296e1 [file] [log] [blame]
avm99963b215e4e2021-09-21 13:29:43 +02001\documentclass[11pt,a4paper,dvipsnames]{article}
2\usepackage[utf8]{inputenc}
3
4\usepackage[english]{babel}
5\input{../../../hw_preamble.tex}
6\input{../../combinatorics_defs.tex}
7
8\title{First assignment\\Combinatorics and graph theory}
9\author{Adrià Vilanova Martínez}
10
11\showcorrectionsfalse % Change "true" to "false" in order to show corrections as
12 % if they weren't corrections (in black instead of red).
13
14\begin{document}
15
16\maketitle
17
18\begin{FreeProblem}
19 \textbf{Problem 1.} (Euler) Show that the number of partitions of an integer $n$ into \textit{odd parts} equals the number of partitions in \textit{distinct parts}.
20\end{FreeProblem}
21
22Let's begin by showing an example of what this means. There are 6 ways to partition the number $n = 5$:
23
24\[ \begin{array}{rcl}
25 5 & = & \textcolor{PineGreen}{1 + 1 + 1 + 1 + 1}, \\
26 & & 2 + 1 + 1 + 1, \\
27 & & 2 + 2 + 1, \\
28 & & \textcolor{PineGreen}{3 + 1 + 1}, \\
29 & & \textcolor{red}{3 + 2}, \\
30 & & \textcolor{red}{4 + 1}, \\
31 & & \textbf{5}.
32\end{array} \]
33
34We can clearly see that, in this case, there are 3 ways to \textcolor{PineGreen}{partition 5 into odd parts}, and also 3 ways to \textcolor{red}{partition 5 into distinct parts}, thus verifying the statement.
35
36Let's prove that via the symbolic method:
37
38Let's define the combinatorical class
39\[ \mathcal{P} = \Seq(\{1\}) \times \Seq(\{3\}) \times \Seq(\{5\}) \times \cdots, \]
40whose objects represent partitions of an integer into odd parts. The size function is the trivial one (the size of integers is their value).
41
42Note that this combinatorical class is the same one we used in class to count partitions of an integer without any constraints, but deleting from the product of sequences those sequences of even integers.
43
44To represent partitions of a number into distinct parts, we're going to use a similar combinatorical class. In this case, instead of removing sequences of even integers, we will truncate each sequence so each object contains at most 1 instance of each integer. Thus, we define:
45\[ \tilde{\mathcal{P}} = (\varepsilon + \{1\}) \times (\varepsilon + \{2\}) \times (\varepsilon + \{3\}) \times \cdots, \]
46whose size function is again the trivial one.
47
48\newpage
49
50Then, to show that both numbers are equal, we simply must prove that their generating functions are equal.\footnote{This is because this would mean that the coefficients are equal, and since these coefficients count the number of elements with a fixed size, and the size corresponds to the integer $n$ being partitioned, this would mean both numbers are equal.}
51
52The generating functions corresponding to each combinatorial class are:
53\[ P(z) = \frac{1}{1 - z} \frac{1}{1 - z^3} \frac{1}{1 - z^5} \cdots, \]
54\[ \tilde{P}(z) = (1 + z) (1 + z^2) (1 + z^3) \cdots. \]
55
56We can use the identity $1 - z^{2k} = (1 + z^k) (1 - z^k)$ to show that:
57\[ \tilde{P}(z) = \frac{1 - z^2}{1 - z} \frac{1 - z^4}{1 - z^2} \frac{1 - z^6}{1 - z^3} \cdots \]
58
59From the first expression, it is clear that $[z^0] \tilde{P}(z) = 1$, so $\tilde{P}(z)$ is invertible. Thus, it suffices to show that $P(z) \tilde{P}(z)^{-1} = 1$.
60
61\[ P(z) \tilde{P}(z)^{-1} = \left( \frac{1}{1 - z} \frac{1}{1 - z^3} \frac{1}{1 - z^5} \cdots \right) \left( \frac{1 - z}{1 - z^2} \frac{1 - z^2}{1 - z^4} \frac{1 - z^3}{1 - z^6} \cdots \right) = \]
62\[ = \frac{(1 - z) (1 - z^2) (1 - z^3) \cdots}{(1 - z) (1 - z^3) (1 - z^5) \cdots (1 - z^2) (1 - z^4) (1 - z^6) \cdots} = \]
63\[ = \frac{(1 - z) (1 - z^2) (1 - z^3) \cdots}{(1 - z) (1 - z^2) (1 - z^3) \cdots} = 1. \]
64
65\end{document}