Maths Olympiad Prep

Library / Indian National Mathematical Olympiad /54 of 103

Indian National Mathematical Olympiad

Combinatorics Difficulty 6.0 National Olympiad Prove it India

Problem:
Prove that for every positive integer nn there exists a unique ordered pair (a,b)(a, b) of positive integers such that
n=12(a+b−1)(a+b−2)+a n = \frac{1}{2}(a + b - 1)(a + b - 2) + a

Solution

Solution:
We have to prove that f:N×N→Nf: \mathbb{N} \times \mathbb{N} \rightarrow \mathbb{N} defined by
f(a,b)=12(a+b−1)(a+b−2)+a,∀a,b∈N f(a, b) = \frac{1}{2}(a + b - 1)(a + b - 2) + a, \quad \forall a, b \in \mathbb{N}
is a bijection. (Note that the right side is a natural number.) To this end define
T(n)=n(n+1)2,n∈N∪{0} T(n) = \frac{n(n+1)}{2}, \quad n \in \mathbb{N} \cup \{0\}
An idea of the proof can be obtained by looking at the following table of values of f(a,b)f(a, b) for some small values of a,ba, b.
Figure 1
We observe that the nn-th diagonal runs from (1,n)(1, n)-th position to (n,1)(n, 1)-th position and the entries are nn consecutive integers; the first entry in the nn-th diagonal is one more than the last entry of the (n−1)(n-1)-th diagonal. For example the first entry in 5-th diagonal is 11 which is one more than the last entry of 4-th diagonal which is 10. Observe that 5-th diagonal starts from 11 and ends with 15 which accounts for 5 consecutive natural numbers. Thus we see that f(n−1,1)+1=f(1,n)f(n-1, 1) + 1 = f(1, n). We also observe that the first nn diagonals exhaust all the natural numbers from 1 to T(n)T(n). (Thus a kind of visual bijection is already there. We formally prove the property.)

We first observe that
f(a,b)−T(a+b−2)=a>0 f(a, b) - T(a + b - 2) = a > 0
and
T(a+b−1)−f(a,b)=(a+b−1)(a+b)2−(a+b−1)(a+b−2)2−a=b−1≥0 T(a + b - 1) - f(a, b) = \frac{(a + b - 1)(a + b)}{2} - \frac{(a + b - 1)(a + b - 2)}{2} - a = b - 1 \geq 0
Thus we have
T(a+b−2)<f(a,b)=(a+b−1)(a+b−2)2+a≤T(a+b−1) T(a + b - 2) < f(a, b) = \frac{(a + b - 1)(a + b - 2)}{2} + a \leq T(a + b - 1)
Suppose f(a1,b1)=f(a2,b2)f(a_1, b_1) = f(a_2, b_2). Then the previous observation shows that
T(a1+b1−2)<f(a1,b1)≤T(a1+b1−1)T(a2+b2−2)<f(a2,b2)≤T(a2+b2−1) \begin{aligned} & T(a_1 + b_1 - 2) < f(a_1, b_1) \leq T(a_1 + b_1 - 1) \\ & T(a_2 + b_2 - 2) < f(a_2, b_2) \leq T(a_2 + b_2 - 1) \end{aligned}
Since the sequence ⟨T(n)⟩n=0∞\langle T(n) \rangle_{n=0}^{\infty} is strictly increasing, it follows that a1+b1=a2+b2a_1 + b_1 = a_2 + b_2. But then the relation f(a1,b1)=f(a2,b2)f(a_1, b_1) = f(a_2, b_2) implies that a1=a2a_1 = a_2 and b1=b2b_1 = b_2. Hence ff is one-one.

Let nn be any natural number. Since the sequence ⟨T(n)⟩n=0∞\langle T(n) \rangle_{n=0}^{\infty} is strictly increasing, we can find a natural number kk such that
T(k−1)<n≤T(k) T(k-1) < n \leq T(k)
Equivalently,
(k−1)k2<n≤k(k+1)2 \frac{(k-1)k}{2} < n \leq \frac{k(k+1)}{2}
Now set a=n−k(k−1)2a = n - \frac{k(k-1)}{2} and b=k−a+1b = k - a + 1. Observe that a>0a > 0. Now (1) shows that
a=n−k(k−1)2≤k(k+1)2−k(k−1)2=k a = n - \frac{k(k-1)}{2} \leq \frac{k(k+1)}{2} - \frac{k(k-1)}{2} = k
Hence b=k−a+1≥1b = k - a + 1 \geq 1. Thus aa and bb are both positive integers and
f(a,b)=12(a+b−1)(a+b−2)+a=k(k−1)2+a=n f(a, b) = \frac{1}{2}(a + b - 1)(a + b - 2) + a = \frac{k(k-1)}{2} + a = n
This shows that every natural number is in the range of ff. Thus ff is also onto. We conclude that ff is a bijection.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.