🇮🇳 INMO · 2023

INMO 2023

Indian National Mathematical Olympiad 2023 — 6 problems with solutions

INMO 2023

Indian National Mathematical Olympiad 2023. 6 problems. Problems sourced from MathNet (CC BY 4.0). Solutions are expert-authored.


Problem 1

Combinatorics
Problem

A Magician and a Detective play a game. The Magician lays down cards numbered from 11 to 5252 face-down on a table. On each move, the Detective can point to two cards and inquire if the numbers on them are consecutive. The Magician replies truthfully. After a finite number of moves the Detective points to two cards. She wins if the numbers on these two cards are consecutive, and loses otherwise.

Prove that the Detective can guarantee a win if and only if she is allowed to ask at least 5050 questions.

View Solution

Strategy for the Detective: Pick a card AA and compare against all others except one. If he ever gets a “Yes”, that pair works; else the remaining card is consecutive with AA. This process takes at most 5050 queries.

Strategy for the Magician: We show that it is not always possible to obtain a “Yes” in 5050 turns, hence showing that 4949 turns are not enough to figure out a consecutive pair. It is enough to conjure a labelling of cards for which denying all 5050 inquiries is valid.

Replace 5252 by any N>3N>3. Think of the cards as vertices of a complete graph KNK_{N}. Delete all edges joining vertices which correspond to pairs of cards the Detective inquired about. We will show that deleting any N2N-2 edges of KNK_{N} still leaves a graph that admits a path containing all the vertices. Labelling all cards along this path as 11 to NN would finish. Several proofs of this claim are possible. We present three of them.

Proof 1

For any two vertices aa and bb, since dega+degb2(N1)(N2)=N\operatorname{deg} a + \operatorname{deg} b \geq 2(N-1)-(N-2)=N, they share a common neighbour. Hence the graph is connected.

Pick the longest path P:u=u0u1uk=v\mathcal{P}: u=u_{0} \rightarrow u_{1} \rightarrow \cdots \rightarrow u_{k}=v. All neighbours of uu and vv must remain within the path, else we could get a longer path. Let uu have xx neighbours {ui1,ui2,,uix}\{u_{i_{1}}, u_{i_{2}}, \ldots, u_{i_{x}}\} with 1=i1<i2<<ixk1=i_{1}<i_{2}<\cdots<i_{x} \leq k. Let vv have yy neighbours {uj1,,ujy}\{u_{j_{1}}, \ldots, u_{j_{y}}\}. Since x+ynx+y \geq n, we see that is=jr+1i_{s}=j_{r}+1 for some rr and ss. Thus there exists ii such that uui+1u \rightarrow u_{i+1} and uivu_{i} \rightarrow v are edges. Thus the path is a cycle

C=ui+1u0u1uivuk1ui+1\mathcal{C}=u_{i+1} \rightarrow u_{0} \rightarrow u_{1} \cdots \rightarrow u_{i} \rightarrow v \rightarrow u_{k-1} \cdots \rightarrow u_{i+1}

Suppose a vertex ww is not in the path P\mathcal{P}. By connectedness, we have a path P\mathcal{P}' from ww to some vertex of P\mathcal{P}. Continue along this path via the cycle C\mathcal{C} to obtain a path longer than P\mathcal{P}; contradiction! Thus the graph has a path of length N1N-1, as desired.

Proof 2

Pick the longest cycle C=v1vkv1\mathcal{C}=v_{1} \rightarrow \cdots \rightarrow v_{k} \rightarrow v_{1}. Note that any vertex ww not in the cycle can be incident to no more than k2\frac{k}{2} of the vertices in it; else there exists ii such that wviw v_{i} and wvi+1w v_{i+1} (indices mod kk) are edges, so we can put ww in to get a longer cycle. Thus our graph is missing at least 12k(Nk)\frac{1}{2} k(N-k) edges. So 2(N2)k(Nk)2(N-2) \geq k(N-k). Clearly k>2k>2 so we see that k{N2,N1}k \in\{N-2, N-1\}.

Case 1. k=N1k=N-1. Pick the leftover ww outside C\mathcal{C}. Not all edges from ww to the cycle are missing (since only N2N-2 are missing in total), so follow an edge from ww to C\mathcal{C} and continue along C\mathcal{C} to get a path of length N1N-1.

Case 2. k=N2k=N-2. Pick the leftover a,ba, b outside C\mathcal{C}. It is clear that both of them have edges to the cycle and abab is also an edge (since k(Nk)=2(N2)k(N-k)=2(N-2) in this case). So starting at aa, going to bb, to some vertex of C\mathcal{C} and following along C\mathcal{C} gives us a path of length N1N-1.

The proof is complete.

Proof 3

The idea is to prove the stronger claim by induction on N3N \geq 3: a graph on NN vertices with (N12)+2\binom{N-1}{2}+2 edges has a cycle of length NN. Deleting the extra edge will give a path of length N1N-1 through all the vertices.

The base case N=3N=3 is trivial. Suppose it holds for all kNk \leq N, we prove it for N+1N+1. Since 2(2+(N2))N+1>N2\frac{2\left(2+\binom{N}{2}\right)}{N+1}>N-2 we see that some vertex vv has degree either N1N-1 or NN.

Case 1. If degree of vv is N1N-1. Then we have an edge e=uve=uv missing among all the edges through vv. Delete vv along with all the edges through it in the graph. The induced graph has a cycle of length NN. Pick two consecutive vertices that are not uu, and append vv between them.

Case 2. If degree of vv is NN. Delete vv along with all its edges. Add an arbitrarily chosen extra edge to the graph so obtained. By induction hypothesis, this resulting graph has a cycle of length NN. If removing the extra edge does not disrupt the cycle, append vv anywhere between two consecutive vertices. If it does break the cycle, use vv to connect the vertices it joined.

The induction is complete.


Problem 2

Geometry
Problem

In a convex quadrilateral ABCDABCD, ABD=30\angle ABD = 30^{\circ}, BCA=75\angle BCA = 75^{\circ}, ACD=25\angle ACD = 25^{\circ} and CD=CBCD = CB. Extend CBCB to meet the circumcircle of triangle DACDAC at EE. Prove that CE=BDCE = BD.

Note

This problem originally includes a geometry diagram. The diagram is omitted in this version.

View Solution

First we show that DEC=30\angle DEC = 30^{\circ}. Choose a point FF on ABAB such that CF=CBCF = CB. Join FCFC and FDFD. Observe that DCB=75+25=100\angle DCB = 75^{\circ} + 25^{\circ} = 100^{\circ}. Since CD=CBCD = CB, we have CDB=CBD=40\angle CDB = \angle CBD = 40^{\circ}. Therefore CBF=40+30=70\angle CBF = 40^{\circ} + 30^{\circ} = 70^{\circ}. This gives CFB=70\angle CFB = 70^{\circ}. Since CD=CB=CFCD = CB = CF, we have the isosceles triangle CDFCDF. But BCF=40\angle BCF = 40^{\circ}. Hence FCD=60\angle FCD = 60^{\circ}. Therefore we have an equilateral triangle CDFCDF. This means FD=FC=CDFD = FC = CD and DFC=60\angle DFC = 60^{\circ}.

Observe that AFC=110\angle AFC = 110^{\circ} and FCA=35\angle FCA = 35^{\circ}. Hence FAC=35\angle FAC = 35^{\circ}. This means FA=FC=FDFA = FC = FD. Thus FF is the circumcentre of ADC\triangle ADC. This implies that

CAD=CFD2=30\angle CAD = \frac{\angle CFD}{2} = 30^{\circ}

Therefore DEC=DAC=30\angle DEC = \angle DAC = 30^{\circ}. Now concentrate on triangle DCEDCE. Construct an equilateral triangle ECGECG with CECE as base, on the side of BB. Join GDGD.

We have CGE=GCE=CEG=60\angle CGE = \angle GCE = \angle CEG = 60^{\circ} and CE=EG=GCCE = EG = GC. Since CED=30\angle CED = 30^{\circ}, we get GED=30\angle GED = 30^{\circ}. Thus EDED is the angle bisector of the isosceles triangle GECGEC. This implies that EDED is also the perpendicular bisector of GCGC. Thus DD is on the perpendicular bisector of GCGC. Therefore DC=DGDC = DG and hence DGC=DCG\angle DGC = \angle DCG. But DCG=10060=40\angle DCG = 100^{\circ} - 60^{\circ} = 40^{\circ}. This implies that DGC=40\angle DGC = 40^{\circ} and hence CDG=100\angle CDG = 100^{\circ}. Consider the quadrilateral GBCDGBCD. We have DG=DC=CBDG = DC = CB, GDC=100=DCB\angle GDC = 100^{\circ} = \angle DCB. It is an isosceles trapezium. (or we can show that GDCBCD\triangle GDC \cong \triangle BCD.) Therefore DB=GCDB = GC. But GC=CEGC = CE. Thus we get DB=CEDB = CE.

Alternate Solution As in the previous solution, one shows that FF is the circumcenter of ADC\triangle ADC. Since EE lies on this circumcircle, this means FEFE is equal to all of the sides FA,FD,FCFA, FD, FC and thus also to CDCD and CBCB. Now CDBCDB and FCEFCE are both isosceles triangles with base angles 4040^{\circ}, and they have CD=FCCD = FC, so they are in fact congruent. This directly implies CE=BDCE = BD, as required.


Problem 3

Algebra
Problem

Let R[x]\mathbb{R}[x] be the set of all polynomials with real coefficients, and let degP\operatorname{deg} P denote the degree of a nonzero polynomial PP. Find all functions f:R[x]R[x]f: \mathbb{R}[x] \rightarrow \mathbb{R}[x] satisfying the following conditions:

  • ff maps the zero polynomial to itself,
  • for any non-zero polynomial PR[x]P \in \mathbb{R}[x], degf(P)1+degP\operatorname{deg} f(P) \leq 1+\operatorname{deg} P, and
  • for any two polynomials P,QR[x]P, Q \in \mathbb{R}[x], the polynomials Pf(Q)P-f(Q) and Qf(P)Q-f(P) have the same set of real roots.
View Solution

We have f(p)=pf(p)=p for all pR[x]p \in \mathbb{R}[x], or f(p)=pf(p)=-p for all pR[x]p \in \mathbb{R}[x]. These clearly satisfy the given conditions.

Proof Claim 1 For all pR[x],f(f(p))=pp \in \mathbb{R}[x], f(f(p))=p. Proof. Using condition 3 on the polynomials pp and f(p)f(p), we see that pf(f(p))p-f(f(p)) has the same set of real roots as f(p)f(p)=0f(p)-f(p)=0, which is R\mathbb{R}. Therefore pf(f(p))p-f(f(p)) is identically zero.

Note that this implies ff is bijective. In what follows, pqp \sim q will mean that pp and qq have the same set of real roots. Note that putting f(q)f(q) for qq in condition 2 gives pqf(p)f(q)p-q \sim f(p)-f(q) for all p,qp, q (call this statement ()(\star) ). In particular, putting q=0q=0 here, pf(p)p \sim f(p) for all pp (call this ()(\star\star)).

Claim 2 For all non-zero pR[x]p \in \mathbb{R}[x], degp1degf(p)degp+1\operatorname{deg} p-1 \leq \operatorname{deg} f(p) \leq \operatorname{deg} p+1. Proof. The right inequality is simply condition 2. Now using condition 2 on the polynomial f(p)f(p), we see that degf(f(p))degf(p)+1\operatorname{deg} f(f(p)) \leq \operatorname{deg} f(p)+1 which gives degf(p)degp1\operatorname{deg} f(p) \geq \operatorname{deg} p-1 because of claim 1.

Claim 3 For all pR[x],degf(p)=degpp \in \mathbb{R}[x], \operatorname{deg} f(p)=\operatorname{deg} p. Proof. Note that nonzero constant polynomials have no root, so by ()(\star\star), their image must have no root. This is impossible if that image has degree 1; so by condition 2, the image has degree 0, i.e., is a constant polynomial. First consider the case when degp\operatorname{deg} p is even; assume for now the leading coefficient of pp is positive. That means p(x)p(x) \rightarrow \infty for x±x \rightarrow \pm \infty, so it has a global minimum, say CC. Then the polynomial p+kp+k (k>Ck>C) has no real roots. Using ()(\star) on pp and the constant polynomial k-k, we see that f(p)f(k)f(p)-f(-k) has no roots. But this is impossible if degf(p)\operatorname{deg} f(p) is odd (since f(k)f(-k) is a constant), so by claim 2, we must have degf(p)=degp\operatorname{deg} f(p)=\operatorname{deg} p. A similar argument holds if pp has negative leading coefficient.

Now if degp\operatorname{deg} p is odd, then degf(p)\operatorname{deg} f(p) cannot be even, otherwise q=f(p)q=f(p) would be an even degree polynomial whose image f(q)=f(f(p))=pf(q)=f(f(p))=p has odd degree, contradicting the last paragraph. Thus degf(p)\operatorname{deg} f(p) is odd, and using claim 2, we infer that degf(p)=degp\operatorname{deg} f(p)=\operatorname{deg} p.

We call a polynomial pp ninth-grade if all degp\operatorname{deg} p roots of pp are real and distinct. Clearly for any ninth-grade pp, pp and f(p)f(p) have the roots and same degree, so f(p)=cppf(p)=c_{p} p for some non-zero cpRc_{p} \in \mathbb{R}.

Claim 4 Given any non-constant qR[x]q \in \mathbb{R}[x], we can choose rr with degree bigger than qq so that both rr and qrq-r are ninth-grade. Proof. Assume that all real roots of qq are inside the interval [a,b][a, b]. Now choose a number nn which has the same parity as degq\operatorname{deg} q and is bigger than degq\operatorname{deg} q, and choose numbers c1=a<c2<<cn1<cn=bc_{1}=a< c_{2}<\cdots<c_{n-1}<c_{n}=b. Consider the polynomial p=k(xc1)(xc2)(xcn)p=k\left(x-c_{1}\right)\left(x-c_{2}\right) \cdots\left(x-c_{n}\right), so that kk has the same sign as the leading coefficient of qq (value of kk will be chosen later). Clearly pp has alternating signs on the intervals (,c1),(c1,c2),,(cn1,cn),(cn,)\left(-\infty, c_{1}\right),\left(c_{1}, c_{2}\right), \cdots,\left(c_{n-1}, c_{n}\right),\left(c_{n}, \infty\right), and has the same sign as qq outside [a,b][a, b]. Let k1,k2,,kn1k_{1}, k_{2}, \cdots, k_{n-1} be the extrema of pp on the intervals [c1,c2],[cn1,cn]\left[c_{1}, c_{2}\right], \cdots\left[c_{n-1}, c_{n}\right] in that order, and suppose they are attained at x1,xn1x_{1}, \cdots x_{n-1}. Make k|k| large enough so that ki>maxx[a,b]q(x)\left|k_{i}\right|>\max _{x \in[a, b]}|q(x)| for all ii. Then p+qp+q has degree nn, and has alternating signs at aϵ,x1,,xn,b+ϵa-\epsilon, x_{1}, \cdots, x_{n}, b+\epsilon for ϵ>0\epsilon>0, so it has exactly nn distinct roots. Now it is enough to take r=pr=-p.

Claim 5 For any qR[x],f(q)=cqqq \in \mathbb{R}[x], f(q)=c_{q} q for some non-zero real cqc_{q}. Proof. We have already proved this for ninth-grade polynomials. Take ninth-grade rr so that qrq-r is ninth grade and n=deg(qr)>degqn=\operatorname{deg}(q-r)>\operatorname{deg} q. Then qrf(q)f(r)=f(q)crrq-r \sim f(q)-f(r)=f(q)-c_{r} r. Since qrq-r is ninth-grade and has the same degree as f(q)crrf(q)-c_{r} r, qr=c(f(q)crr)=cf(q)c1rq-r=c\left(f(q)-c_{r} r\right)=c f(q)-c_{1} r for non-zero reals c,c1c, c_{1}. Comparing the leading term (which belongs to rr) on both sides, c1=1c_{1}=1, therefore q=cf(q)f(q)=cqqq=c f(q) \Longrightarrow f(q)=c_{q} q.

Claim 6 For any p,qR[x],cp=cqp, q \in \mathbb{R}[x], c_{p}=c_{q}. Proof. We note that for any two polynomials p,qp, q if pqp-q has a real root which is not a root of pp, then cp=cqc_{p}=c_{q}. Indeed, if ss is a root of pqp-q (meaning p(s)=q(s)0p(s)=q(s) \neq 0), then it’s also a root of f(p)f(q)=cppcqqf(p)-f(q)=c_{p} p-c_{q} q, so that cpp(s)=cqq(s)cp=cqc_{p} p(s)=c_{q} q(s) \Longrightarrow c_{p}=c_{q}.

Now for any two p,qp, q, choose odd NN such that N>max{degp,degq}N>\max \{\operatorname{deg} p, \operatorname{deg} q\}. Then the polynomial r=xNr=x^{N} is such that rpr-p and rqr-q both have real roots, so cq=cr=cpc_{q}=c_{r}=c_{p}.

Claim 6 clearly means there is cRc \in \mathbb{R} so that f(p)=cpf(p)=c p for all pR[x]p \in \mathbb{R}[x]. Using the fact f(f(p))=pf(f(p))=p, we see that the only possibilities are c=1c=1 or c=1c=-1, completing the proof.


Problem 4

Geometry
Problem

In triangle ABCABC with CA=CBCA = CB, point EE lies on the circumcircle of ABCABC such that ECB=90\angle ECB = 90^\circ. The line through EE parallel to CBCB intersects CACA in FF and ABAB in GG. Prove that the centre of the circumcircle of triangle EGBEGB lies on the circumcircle of triangle ECFECF.

Note

This problem originally includes a geometry diagram. The diagram is omitted in this version.

View Solution

Solution 1.

We have FG=FAFG = FA since FGFG is parallel to BCBC. But also GAE\triangle GAE is a right angle triangle. Thus, if FF' is the midpoint of GEGE, then GAF=FGA=FGA=GAF\angle GAF = \angle FGA = \angle F'GA = \angle GAF' which implies FFF \equiv F'. Thus, FF is the midpoint of GEGE.

If OO is the circumcenter of EBG\triangle EBG, then

FOE=GBE=ABE=ACE=FCE.\angle FOE = \angle GBE = \angle ABE = \angle ACE = \angle FCE.

Thus, we get FOE=FCE\angle FOE = \angle FCE as desired. \square

View Solution

Solution 2.

(BCA\angle BCA acute case) Let O1O_1 be the circumcenter of ABC\triangle ABC, OO be the circumcenter of EBG\triangle EBG and ω\omega be the circumcircle of ECF\triangle ECF.

First, show that FF is the midpoint of EGEG as in Solution 1. Next, we show that O1O_1 lies on ω\omega. This follows from

EO1C=2EBC=2O1BC=2BCO1=BCA=EFC.\angle EO_1C = 2\angle EBC = 2\angle O_1BC = 2\angle BCO_1 = \angle BCA = \angle EFC.

Now, O1O_1 is the midpoint of EBEB and FF is the midpoint of EGEG, therefore the homothety at EE with ratio 1/21/2 takes EGB\triangle EGB to EFO1\triangle EFO_1. Thus, it takes OO, the circumcenter of EGB\triangle EGB, to the circumcenter of EFO1\triangle EFO_1, thus proving that the midpoint of EOEO is the center of ω\omega. This immediately implies that OO lies on ω\omega. \square


Problem 5

Geometry
Problem

In triangle ABCABC with CA=CBCA = CB, point EE lies on the circumcircle of ABCABC such that ECB=90\angle ECB = 90^\circ. The line through EE parallel to CBCB intersects CACA in FF and ABAB in GG. Prove that the centre of the circumcircle of triangle EGBEGB lies on the circumcircle of triangle ECFECF.

Note

This problem originally includes a geometry diagram. The diagram is omitted in this version.

View Solution

Solution 1.

We have FG=FAFG = FA since FGFG is parallel to BCBC. But also GAE\triangle GAE is a right angle triangle. Thus, if FF' is the midpoint of GEGE, then GAF=FGA=FGA=GAF\angle GAF = \angle FGA = \angle F'GA = \angle GAF' which implies FFF \equiv F'. Thus, FF is the midpoint of GEGE. If OO is the circumcenter of EBG\triangle EBG, then

FOE=GBE=ABE=ACE=FCE.\angle FOE = \angle GBE = \angle ABE = \angle ACE = \angle FCE.

Thus, we get FOE=FCE\angle FOE = \angle FCE as desired. \square

View Solution

Solution 2.

(BCA\angle BCA acute case) Let O1O_1 be the circumcenter of ABC\triangle ABC, OO be the circumcenter of EBG\triangle EBG and ω\omega be the circumcircle of ECFECF. First, show that FF is the midpoint of EGEG as in Solution 1. Next, we show that O1O_1 lies on ω\omega. This follows from

EO1C=2EBC=2O1BC=2BCO1=BCA=EFC.\angle EO_1C = 2\angle EBC = 2\angle O_1BC = 2\angle BCO_1 = \angle BCA = \angle EFC.

Now, O1O_1 is the midpoint of EBEB and FF is the midpoint of EGEG, therefore the homothety at EE with ratio 1/21/2 takes EGB\triangle EGB to EFO1\triangle EFO_1. Thus, it takes OO, the circumcenter of EGB\triangle EGB, to the circumcenter of EFO1\triangle EFO_1, thus proving that the midpoint of EOEO is the center of ω\omega. This immediately implies that OO lies on ω\omega. \square


Problem 6

Combinatorics
Problem

All the squares of a 2024×20242024 \times 2024 board are coloured white. In one move, Mohit can select one row or column whose every square is white, choose exactly 10001000 squares in this row or column, and colour all of them red. Find the maximum number of squares that Mohit can colour red in a finite number of moves.

View Solution

Let n=2024n = 2024 and k=1000k = 1000. We claim that the maximum number of squares that can be coloured in this way is k(2nk)k(2n - k), which evaluates to 30480003048000.

Indeed, call a row/column bad if it has at least one red square. After the first move, there are exactly k+1k+1 bad rows and columns: if a row was picked, then that row and the kk columns corresponding to the chosen squares are all bad. Any subsequent move increases the number of bad rows/columns by at least 11. Since there are only 2n2n rows and columns, we can make at most 2n(k+1)2n - (k+1) moves after the first one, and so at most 2nk2n - k moves can be made in total. Thus we can have at most k(2nk)k(2n-k) red squares.

To prove this is achievable, let’s choose each of the nn columns in the first nn moves, and colour the top kk cells in these columns. Then, the bottom nkn-k rows are still uncoloured, so we can make nkn-k more moves, colouring k(n+nk)k(n+n-k) cells in total. \square