IMO 2009 C2 #
For each $n ∈ ℕ$, find the largest integer $k$ such that there exist $k$ triples $(a_1, b_1, c_1), …, (a_k, b_k, c_k)$ with the following properties:
- $a_i + b_i + c_i = n$ for all $i ≤ k$;
- for any $i ≠ j$, we have $a_i ≠ a_j$, $b_i ≠ b_j$, and $c_i ≠ c_j$.
Answer #
$⌊2n/3⌋ + 1$.
Solution #
We follow the official solution.
Extra lemmas #
If f : ι → ℕ is injective, thenf or any finite set I ⊆ ι,
the sum of f(i) across all i ∈ I is at least C(#I, 2).
The map f : Fin k → ℕ defined by f(i) = 2(k - i - 1) is injective.
Start of the problem #
A collection ((x_{0i}, x_{1i}, x_{2i}))_{i ∈ ι} of triples is called n-good
if x_{ji} ≠ x_{ji'} whenever i ≠ i' and x_{0i} + x_{1i} + x_{2i} = n for all i.
- toFun_inj (j : Fin 3) : Function.Injective (self.toFun j)
Instances For
Subcollection of an n-good collection, which is also an n-good collection.
Equations
Instances For
If there is an ι-indexed n-good collection and |κ| ≤ |ι|,
then there is also a κ-indexed n-good collection.
If there is an ι-indexed n-good collection, then |ι| ≤ 2n/3 + 1.
Creating a new n-good collection by adding a fixed value to a fixed coordinate.
Equations
Instances For
Construction of a 3k-good collection of 2k + 1 triples.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Construction of a 3k + 1-good collection of 2k + 1 triples.
Equations
Instances For
If |ι| ≤ 2n/3 + 1, then there is an ι-indexed n-good collection.
There exists an ι-indexed n-good collection if and only if ι ≤ ⌊2n/3⌋ + 1.
Final solution