# 24th Indian National Mathematical Olympiad, 2009 ## Problems and Solutions 1. Let $A B C$ be a triangle and let $P$ be an interior point such that $\angle B P C=90^{\circ}, \angle B A P=$ $\angle B C P$. Let $M, N$ be the mid-points of $A C, B C$ respectively. Suppose $B P=2 P M$. Prove that $A, P, N$ are collinear. ## Solution: Extend $C P$ to $D$ such that $C P=P D$. Let $\angle B C P=\alpha=\angle B A P$. Observe that $B P$ is the perpendicular bisector of $C D$. Hence $B C=B D$ and $B C D$ is an isosceles triangle. Thus $\angle B D P=\alpha$. But then $\angle B D P=$ $\alpha=\angle B A P$. This implies that $B, P, A, D$ all lie on a circle. In turn, we conclude that $\angle D A B=\angle D P B=90^{\circ}$. Since $P$ is the midpoint of $C P$ (by construction) and $M$ is the mid-point of $C A$ (given), it follows that $P M$ is parallel to $D A$ and $D A=2 P M=B P$. Thus $D B P A$ is an isosceles trapezium and $D B$ is parallel to $P A$. ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-1.jpg?height=463&width=681&top_left_y=614&top_left_x=1096) We hence get $$ \angle D P A=\angle B A P=\angle B C P=\angle N P C $$ the last equality follows from the fact that $\angle B P C=90^{\circ}$, and $N$ is the mid-point of $C B$ so that $N P=N C=N B$ for the right-angled triangle $B P C$. It follows that $A, P, N$ are collinear. ## Alternate Solution: We use coordinate geometry. Let us take $P=(0,0)$, and the coordinate axes along $P C$ and $P B$; We take $C=(c, 0)$ and $B=(0, b)$. Let $A=(u, v)$. We see that $N=(c / 2, b / 2)$ and $M=((u+c) / 2, v / 2)$. The condition $P B=2 P M$ translates to $$ (u+c)^{2}+v^{2}=b^{2} $$ We observe that the slope of $C P=0$; that of $C B$ is $-b / c$; that of $P A$ is $v / u$; and that of $B A$ is $(v-b) / u$. Taking proper signs, we can convert $\angle P C B=\angle P A B$, via tan function, to the following relation: $$ u^{2}+v^{2}-v b=-c u $$ Thus we obtain $$ u(u+c)=v(b-v), \quad c(c+u)=b(b-v) $$ It follows that $v / u=b / c$. But then we get that the slope of $A P$ and $P N$ are the same. We conclude that $A, P, N$ are collinear. 2. Define a sequence $\left\langle a_{n}\right\rangle_{n=1}^{\infty}$ as follows: $$ a_{n}= \begin{cases}0, & \text { if the number of positive divisors of } n \text { is odd } \\ 1, & \text { if the number of positive divisors of } n \text { is even }\end{cases} $$ (The positive divisors of $n$ include 1 as well as $n$.) Let $x=0 . a_{1} a_{2} a_{3} \ldots$ be the real number whose decimal expansion contains $a_{n}$ in the $n$-th place, $n \geq 1$. Determine, with proof, whether $x$ is rational or irrational. ## Solution: We show that $x$ is irrational. Suppose that $x$ is rational. Then the sequence $\left\langle a_{n}\right\rangle_{n=1}^{\infty}$ is periodic after some stage; there exist natural numbers $k, l$ such that $a_{n}=a_{n+l}$ for all $n \geq k$. Choose $m$ such that $m l \geq k$ and $m l$ is a perfect square. Let $$ m=p_{1}^{\alpha_{1}} p_{2}^{\alpha_{2}} \ldots p_{r}^{\alpha_{r}}, \quad l=p_{1}^{\beta_{1}} p_{2}^{\beta_{2}} \ldots p_{r}^{\beta_{r}} $$ be the prime decompositions of $m, l$ so that $\alpha_{j}+\beta_{j}$ is even for $1 \leq j \leq r$. Now take a prime $p$ different from $p_{1}, p_{2}, \ldots, p_{r}$. Consider $m l$ and $p m l$. Since $p m l-m l$ is divisible by $l$, we have $a_{p m l}=a_{m l}$. Hence $d(p m l)$ and $d(m l)$ have same parity. But $d(p m l)=2 d(m l)$, since $\operatorname{gcd}(p, m l)=1$ and $p$ is a prime. Since $m l$ is a square, $d(m l)$ is odd. It follows that $d(p m l)$ is even and hence $a_{p m l} \neq a_{m l}$. This contradiction implies that $x$ is irrational. Alternative Solution: As earlier, assume that $x$ is rational and choose natural numbers $k, l$ such that $a_{n}=a_{n+l}$ for all $n \geq k$. Consider the numbers $a_{m+1}, a_{m+2}, \ldots, a_{m+l}$, where $m \geq k$ is any number. This must contain at least one 0 . Otherwise $a_{n}=1$ for all $n \geq k$. But $a_{r}=0$ if and only if $r$ is a square. Hence it follows that there are no squares for $n>k$, which is absurd. Thus every $l$ consecutive terms of the sequence $\left\langle a_{n}\right\rangle$ must contain a 0 after certain stage. Let $t=\max \{k, l\}$, and consider $t^{2}$ and $(t+1)^{2}$. Since there are no squares between $t^{2}$ and $(t+1)^{2}$, we conclude that $a_{t^{2}+j}=1$ for $1 \leq j \leq 2 t$. But then, we have $2 t(>l)$ consecutive terms of the sequence $\left\langle a_{n}\right\rangle$ which miss 0 , contradicting our earlier observation. 3. Find all real numbers $x$ such that $$ \left[x^{2}+2 x\right]=[x]^{2}+2[x] $$ (Here $[x]$ denotes the largest integer not exceeding $x$.) ## Solution: Adding 1 both sides, the equation reduces to $$ \left[(x+1)^{2}\right]=([x+1])^{2} $$ we have used $[x]+m=[x+m]$ for every integer $m$. Suppose $x+1 \leq 0$. Then $[x+1] \leq$ $x+1 \leq 0$. Thus $$ ([x+1])^{2} \geq(x+1)^{2} \geq\left[(x+1)^{2}\right]=([x+1])^{2} $$ Thus equality holds everywhere. This gives $[x+1]=x+1$ and thus $x+1$ is an integer. Using $x+1 \leq 0$, we conclude that $$ x \in\{-1,-2,-3, \ldots\} $$ Suppose $x+1>0$. We have $$ (x+1)^{2} \geq\left[(x+1)^{2}\right]=([x+1])^{2} $$ Moreover, we also have $$ (x+1)^{2} \leq 1+\left[(x+1)^{2}\right]=1+([x+1])^{2} $$ Thus we obtain $$ [x]+1=[x+1] \leq(x+1)<\sqrt{1+([x+1])^{2}}=\sqrt{1+([x]+1)^{2}} $$ This shows that $$ x \in\left[n, \sqrt{1+(n+1)^{2}}-1\right) $$ where $n \geq-1$ is an integer. Thus the solution set is $$ \{-1,-2,-3, \ldots\} \cup\left\{\cup_{n=-1}^{\infty}\left[n, \sqrt{1+(n+1)^{2}}-1\right)\right\} $$ It is easy verify that all the real numbers in this set indeed satisfy the given equation. 4. All the points in the plane are coloured using three colours. Prove that there exists a triangle with vertices having the same colour such that either it is isosceles or its angles are in geometric progression. ## Solution: Consider a circle of positive radius in the plane and inscribe a regular heptagon $A B C D E F G$ in it. Since the seven vertices of this heptagon are coloured by three colours, some three vertices have the same colour, by pigeon-hole principle. Consider the triangle formed by these three vertices. Let us call the part of the circumference separated by any two consecutive vertices of the heptagon an arc. The three vertices of the same colour are separated by arcs of length $l, m, n$ as we move, say counter-clockwise, along the circle, starting from a fixed vertex among these three, where $l+m+n=7$. Since, the order of $l, m, n$ does not matter for a triangle, there are four possibilities: $1+1+5=7 ; 1+2+4=7 ; 1+3+3=7 ; 2+2+3=7$. In the first, third and fourth cases, we have isosceles triangles. In the second case, we have a triangle whose angles are in geometric progression. The four corresponding figures are shown below. ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-3.jpg?height=368&width=347&top_left_y=1540&top_left_x=325) (i) ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-3.jpg?height=371&width=331&top_left_y=1533&top_left_x=688) (ii) ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-3.jpg?height=390&width=333&top_left_y=1518&top_left_x=1037) (iii) ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-3.jpg?height=393&width=364&top_left_y=1517&top_left_x=1371) (iv) In (i), $A B=B C$; in (iii), $A E=B E$; in (iv), $A C=C E$; and in (ii) we see that $\angle D=\pi / 7$, $\angle A=2 \pi / 7$ and $\angle B=4 \pi / 7$ which are in geometric progression. 5. Let $A B C$ be an acute-angled triangle and let $H$ be its ortho-centre. Let $h_{\text {max }}$ denote the largest altitude of the triangle $A B C$. Prove that $$ A H+B H+C H \leq 2 h_{\max } $$ ## Solution: ![](https://cdn.mathpix.com/cropped/2024_06_05_130fea46e64a96f1a913g-4.jpg?height=475&width=479&top_left_y=218&top_left_x=411) Let $\angle C$ be the smallest angle, so that $C A \geq A B$ and $C B \geq A B$. In this case the altitude through $C$ is the longest one. Let the altitude through $C$ meet $A B$ in $D$ and let $H$ be the ortho-centre of $A B C$. Let $C D$ extended meet the circum-circle of $A B C$ in $K$. We have $C D=h_{\max }$ so that the inequality to be proved is $$ A H+B H+C H \leq 2 C D $$ Using $C D=C H+H D$, this reduces to $A H+B H \leq C D+H D$. However, we observe that $A H=A K, B H=B K$ and $H D=D K$.(For example $B H=B K$ and $D H=D K$ follow from the congruency of the right-angled triangles $D B K$ and $D B H$.) Thus we need to prove that $A K+B K \leq C K$. Applying Ptolemy's theorem to the cyclic quadrilateral $B C A K$, we get $$ A B \cdot C K=A C \cdot B K+B C \cdot A K \geq A B \cdot B K+A B \cdot A K $$ This implies that $C K \geq A K+B K$, which is precisely what we are looking for. There were other beautiful solutions given by students who participated in INMO-2009. We record them here. 1. Let $A D, B E, C F$ be the altitudes and $H$ be the ortho-centre. Observe that $$ \frac{A H}{A D}=\frac{[A H B]}{[A D B]}=\frac{[A H C]}{[A D C]} $$ This gives $$ \frac{A H}{A D}=\frac{[A H B]+[A H C]}{[A D B]+[A D C]}=1-\frac{[B H C]}{[A B C]} $$ Similar expressions for the ratios $B H / B E$ and $C H / C F$ may be obtained. Adding, we get $$ \frac{A H}{A D}+\frac{B H}{B E}+\frac{C H}{C F}=2 $$ Suppose $A D$ is the largest altitude. We get $$ \frac{A H}{A D}+\frac{B H}{A D}+\frac{C H}{A D} \leq \frac{A H}{A D}+\frac{B H}{B E}+\frac{C H}{C F}=2 $$ This gives the result. 2. Let $O$ be the circum-centre and let $L, M, N$ be the mid-points of $B C, C A, A B$ respectively. Then we know that $A H=2 O L, B H=2 O M$ and $C H=2 O N$. As earlier, assume $A D$ is the largest altitude. Then $B C$ is the least side. We have $$ \begin{aligned} 4[A B C]=4[B O C]+4[C O A]+4[A O B] & =B C \times 2 O L+C A \times 2 O M+A B \times 2 O N \\ & =B C \times A H+C A \times B H+A B \times C H \\ & \geq A B(A H+B H+C H) \end{aligned} $$ Thus $$ A H+B H+C H \leq \frac{4[A B C]}{A B}=2 A D $$ 3. We make use of the fact that $A H=2 R \cos \angle A, B H=2 R \cos \angle B, C H=2 R \cos \angle C$ and $A D=2 R \sin \angle B \sin \angle C$, where $R$ is the circum-radius of $A B C$. We are assuming that $A D$ is the largest altitude so that $\angle A$ is the least angle. Thus we have to prove that $$ \cos \angle A+\cos \angle B+\cos \angle C \leq 2 \sin \angle B \angle C $$ under the assumption $\angle A \leq \angle B$ and $\angle A \leq \angle C$. On multiplying this by $2 \sin \angle A$, this is equivalent to $$ \begin{aligned} & 2(\sin \angle A \cos \angle A+\sin \angle A \cos \angle B+\sin \angle A \cos \angle C) \\ & \leq 4 \sin \angle A \sin \angle B \angle C=\sin 2 A+\sin 2 B+\sin 2 C \end{aligned} $$ This is equivalent to $$ \cos \angle B(\sin \angle A-\sin \angle B)+\cos \angle C(\sin \angle A-\sin \angle C) \leq 0 $$ Since $A B C$ is acute-angled and $A$ is the least angle, the result follows. 6. Let $a, b, c$ be positive real numbers such that $a^{3}+b^{3}=c^{3}$. Prove that $$ a^{2}+b^{2}-c^{2}>6(c-a)(c-b) $$ ## Solution: The given inequality may be written in the form $$ 7 c^{2}-6(a+b) c-\left(a^{2}+b^{2}-6 a b\right)<0 $$ Putting $x=7 c^{2}, y=-6(a+b) c, z=-\left(a^{2}+b^{2}-6 a b\right)$, we have to prove that $x+y+z<0$. Observe that $x, y, z$ are not all equal $(x>0, y<0)$. Using the identity $$ x^{3}+y^{3}+z^{3}-3 x y z=\frac{1}{2}(x+y+z)\left[(x-y)^{2}+(y-z)^{2}+(z-x)^{2}\right] $$ we infer that it is sufficient to prove $x^{3}+y^{3}+z^{3}-3 x y z<0$. Substituting the values of $x, y, z$, we see that this is equivalent to $$ 343 c^{6}-216(a+b)^{3} c^{3}-\left(a^{2}+b^{2}-6 a b\right)^{3}-126 c^{3}(a+b)\left(a^{2}+b^{2}-6 a b\right)<0 $$ Using $c^{3}=a^{3}+b^{3}$, this reduces to $343\left(a^{3}+b^{3}\right)^{2}-216(a+b)^{3}\left(a^{3}+b^{3}\right)-\left(a^{2}+b^{2}-6 a b\right)^{3}-126\left(\left(a^{3}+b^{3}\right)(a+b)\left(a^{2}+b^{2}-6 a b\right)<0\right.$. This may be simplified (after some tedious calculations) to, $$ -a^{2} b^{2}\left(129 a^{2}-254 a b+129 b^{2}\right)<0 $$ But $129 a^{2}-254 a b+129 b^{2}=129(a-b)^{2}+4 a b>0$. Hence the result follows. Remark: The best constant $\theta$ in the inequality $a^{2}+b^{2}-c^{2} \geq \theta(c-a)(c-b)$, where $a, b, c$ are positive reals such that $a^{3}+b^{3}=c^{3}$, is $\theta=2\left(1+2^{1 / 3}+2^{-1 / 3}\right)$. Here again, there were some beautiful solutions given by students. 1. We have $$ a^{3}=c^{3}-b^{3}=(c-b)\left(c^{2}+c b+b^{2}\right) $$ which is same as $$ \frac{a^{2}}{c-b}=\frac{c^{2}+c b+b^{2}}{a} $$ Similarly, we get $$ \frac{b^{2}}{c-a}=\frac{c^{2}+c a+a^{2}}{b} $$ We observe that $$ \frac{a^{2}}{c-b}+\frac{b^{2}}{c-a}=\frac{c\left(a^{2}+b^{2}\right)-a^{3}-b^{3}}{(c-a)(c-b)}=\frac{c\left(a^{2}+b^{2}-c^{2}\right)}{(c-a)(c-b)} $$ This shows that $$ \frac{a^{2}+b^{2}-c^{2}}{(c-a)(c-b)}=\frac{c^{2}+c b+b^{2}}{c a}+\frac{c^{2}+c a+a^{2}}{c b} $$ Thus it is sufficient to prove that $$ \frac{c^{2}+c b+b^{2}}{c a}+\frac{c^{2}+c a+a^{2}}{c b} \geq 6 $$ However, we have $c^{2}+b^{2} \geq 2 c b$ and $c^{2}+a^{2} \geq 2 c a$. Hence $$ \frac{c^{2}+c b+b^{2}}{c a}+\frac{c^{2}+c a+a^{2}}{c b} \geq 3\left(\frac{b}{a}+\frac{a}{b}\right) \geq 3 \times 2=6 $$ We have used AM-GM inequality. 2. Let us set $x=a / c$ and $y=b / c$. Then $x^{3}+y^{3}=1$ and the inequality to be proved is $x^{2}+y^{2}-1>6(1-x)(1-y)$. This reduces to $$ (x+y)^{2}+6(x+y)-8 x y-7>0 $$ But $$ 1=x^{3}+y^{3}=(x+y)\left(x^{2}-x y+y^{2}\right) $$ which gives $x y=\left((x+y)^{3}-1\right) / 3(x+y)$. Substituting this in (1) and introducing $x+y=t$, the inequality takes the form $$ t^{2}+6 t-\frac{8}{3} \frac{\left(t^{3}-1\right)}{t}-7>0 $$ This may be simplified to $-5 t^{3}+18 t^{2}-2 t+8>0$. Equivalently $$ -(5 t-8)(t-1)^{2}>0 $$ Thus we need to prove that $5 t<8$. Observe that $(x+y)^{3}>x^{3}+y^{3}=1$, so that $t>1$. We also have $$ \left(\frac{x+y}{2}\right) \leq \frac{x^{3}+y^{3}}{2}=\frac{1}{2} $$ This shows that $t^{3} \leq 4$. Thus $$ \left(\frac{5 t}{8}\right)^{3} \leq \frac{125 \times 4}{512}=\frac{500}{512}<1 $$ Hence $5 t<8$, which proves the given inequality. 3. We write $b^{3}=c^{3}-a^{3}$ and $a^{3}=c^{3}-b^{3}$ so that $$ c-a=\frac{b^{3}}{c^{2}-c a+a^{2}}, \quad c-b=\frac{a^{3}}{c^{2}-c b+b^{2}} $$ Thus the inequality reduces to $$ a^{2}+b^{2}-c^{2}>6 \frac{a^{3} b^{3}}{\left(c^{2}-c a+a^{2}\right)\left(c^{2}-c b+b^{2}\right)} $$ This simplifies(after some lengthy calculations) to $$ \begin{aligned} & -c^{6}-(a+b) c^{5}-a b c^{4}+\left(a^{3}+b^{3}\right) c^{3}+\left(a^{4}+a^{3} b+a^{2} b^{2}+a b^{3}+b^{4}\right) c^{2} \\ & \quad\left(a^{2} b+a b^{2}+a^{3}+b^{3}\right) a b c+\left(a^{4} b^{2}-6 a^{3} b^{3}+a^{2} b^{4}\right)>0 \end{aligned} $$ Substituting $$ c^{3}=a^{3}+b^{3}, \quad c^{4}=c\left(a^{3}+b^{3}\right), \quad c^{5}=c^{2}\left(a^{3}+b^{3}\right), \quad c^{6}=\left(a^{3}+b^{3}\right)^{2} $$ the inequality further reduces to $$ a^{2} b^{2}\left(a^{2}+b^{2}+c^{2}+a c+b c-6 a b\right)>0 $$ Thus we need to prove that $a^{2}+b^{2}+c^{2}+a c+b c-6 a b>0$. Since $a^{2}+b^{2} \geq 2 a b$, it is enough to prove that $c^{2}+c(a+b)-4 a b>0$. Multiplying this by $c$ and using $a^{3}+b^{3}=c^{3}$, we need to prove that $$ a^{3}+b^{3}+c^{2} a+c^{2} b>4 a b c $$ Using AM-GM inequality to these 4 terms and using $c>a, c>b$ we get $$ a^{3}+b^{3}+c^{2} a+c^{2} b>4\left(a^{3} b^{3} c^{2} a c^{2} b\right)^{1 / 4}=4 a b c $$ which proves the inequality.