Unofficial archive — problems, solutions & results © IMC, reproduced with permission.

IMC / 2005 / Problems / Day 2, P12

IMC 2005 · Day 2 · P12

killer

Prove that if pp and qq are rational numbers and r=p+q7r = p + q\sqrt{7}, then there exists a matrix (abcd)±(1001)\begin{pmatrix} a & b \\ c & d \end{pmatrix} \ne \pm \begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix} with integer entries and with adbc=1ad - bc = 1 such that ar+bcr+d=r.\frac{ar + b}{cr + d} = r.

Solution (official)

First consider the case when q=0q = 0 and rr is rational. Choose a positive integer tt such that r2tr^2 t is an integer and set (abcd)=(1+rtr2tt1rt).\begin{pmatrix} a & b \\ c & d \end{pmatrix} = \begin{pmatrix} 1 + rt & -r^2 t \\ t & 1 - rt \end{pmatrix}. Then det(abcd)=1andar+bcr+d=(1+rt)rr2ttr+(1rt)=r.\det \begin{pmatrix} a & b \\ c & d \end{pmatrix} = 1 \quad \text{and} \quad \frac{ar + b}{cr + d} = \frac{(1 + rt) r - r^2 t}{tr + (1 - rt)} = r. Now assume q0q \ne 0. Let the minimal polynomial of rr in Z[x]\mathbb{Z}[x] be ux2+vx+wu x^2 + v x + w. The other root of this polynomial is rˉ=pq7\bar{r} = p - q\sqrt{7}, so v=u(r+rˉ)=2upv = -u(r + \bar{r}) = -2up and w=urrˉ=u(p27q2)w = u r \bar{r} = u(p^2 - 7q^2). The discriminant is v24uw=7(2uq)2v^2 - 4uw = 7 \cdot (2uq)^2. The left-hand side is an integer, implying that also Δ=2uq\Delta = 2uq is an integer.

The equation ar+bcr+d=r\frac{ar+b}{cr+d} = r is equivalent to cr2+(da)rb=0c r^2 + (d - a) r - b = 0. This must be a multiple of the minimal polynomial, so we need c=ut,da=vt,b=wtc = ut, \quad d - a = vt, \quad -b = wt for some integer t0t \ne 0. Putting together these equalities with adbc=1ad - bc = 1 we obtain that (a+d)2=(ad)2+4ad=4+(v24uw)t2=4+7Δ2t2.(a + d)^2 = (a - d)^2 + 4ad = 4 + (v^2 - 4uw) t^2 = 4 + 7 \Delta^2 t^2. Therefore 4+7Δ2t24 + 7 \Delta^2 t^2 must be a perfect square. Introducing s=a+ds = a + d, we need an integer solution (s,t)(s, t) for the Diophantine equation s27Δ2t2=4(1)\tag{1} s^2 - 7 \Delta^2 t^2 = 4 such that t0t \ne 0.

The numbers ss and tt will be even. Then a+d=sa + d = s and da=vtd - a = vt will be even as well and aa and dd will be really integers.

Let (8±37)n=kn±ln7(8 \pm 3\sqrt{7})^n = k_n \pm l_n \sqrt{7} for each integer nn. Then kn27ln2=(kn+ln7)(knln7)=((8+37)n(837))n=1k_n^2 - 7 l_n^2 = (k_n + l_n\sqrt{7})(k_n - l_n\sqrt{7}) = ((8 + 3\sqrt{7})^n (8 - 3\sqrt{7}))^n = 1 and the sequence (ln)(l_n) also satisfies the linear recurrence ln+1=16lnln1l_{n+1} = 16 l_n - l_{n-1}. Consider the residue of lnl_n modulo Δ\Delta. There are Δ2\Delta^2 possible residue pairs for (ln,ln+1)(l_n, l_{n+1}) so some are the same. Starting from such two positions, the recurrence shows that the sequence of residues is periodic in both directions. Then there are infinitely many indices such that lnl0=0(modΔ)l_n \equiv l_0 = 0 \pmod{\Delta}.

Taking such an index nn, we can set s=2kns = 2 k_n and t=2ln/Δt = 2 l_n / \Delta.

Remarks. 1. It is well-known that if D>0D > 0 is not a perfect square then the Pell-like Diophantine equation x2Dy2=1x^2 - D y^2 = 1 has infinitely many solutions. Using this fact the solution can be generalized to all quadratic algebraic numbers.

2. It is also known that the continued fraction of a real number rr is periodic from a certain point if and only if rr is a root of a quadratic equation. This fact can lead to another solution.

How the field did

contestants scored
226
average (of 20)
2.97
solved (≥ 80%)
4.0%
near-0 (≤ 10%)
71.7%
discrimination
0.33

Score distribution (field cohort)

Computed on contestants with a meaningful total (field cohort); discrimination is the corrected item–total correlation.

Similar problems

IMC 2019 · Day 1 · P5killeravg 0.8/10 · solved 5% · near-0 91% · disc 0.35
IMC 2008 · Day 2 · P11very hardavg 0.8/10 · solved 7% · near-0 90% · disc 0.43
IMC 2006 · Day 1 · P3hardavg 2.5/10 · solved 16% · near-0 64% · disc 0.39
IMC 2019 · Day 1 · P2mediumavg 6.1/10 · solved 44% · near-0 13% · disc 0.38