返回题库

AIME 2021 II · 第 9 题

AIME 2021 II — Problem 9

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Find the number of ordered pairs (m,n)(m, n) such that mm and nn are positive integers in the set {1,2,...,30}\{1, 2, ..., 30\} and the greatest common divisor of 2m+12^m + 1 and 2n12^n - 1 is not 11.

解析

Solution 1

This solution refers to the Remarks section.

By the Euclidean Algorithm, we have

gcd(2m+1,2m1)=gcd(2,2m1)=1.\gcd\left(2^m+1,2^m-1\right)=\gcd\left(2,2^m-1\right)=1. We are given that gcd(2m+1,2n1)>1.\gcd\left(2^m+1,2^n-1\right)>1. Multiplying both sides by gcd(2m1,2n1)\gcd\left(2^m-1,2^n-1\right) gives

gcd(2m+1,2n1)gcd(2m1,2n1)>gcd(2m1,2n1)gcd((2m+1)(2m1),2n1)>gcd(2m1,2n1)by Claim 1gcd(22m1,2n1)>gcd(2m1,2n1)2gcd(2m,n)1>2gcd(m,n)1by Claim 2gcd(2m,n)>gcd(m,n),\begin{aligned} \gcd\left(2^m+1,2^n-1\right)\cdot\gcd\left(2^m-1,2^n-1\right)&>\gcd\left(2^m-1,2^n-1\right) \\ \gcd\left(\left(2^m+1\right)\left(2^m-1\right),2^n-1\right)&>\gcd\left(2^m-1,2^n-1\right) \hspace{12mm} &&\text{by }\textbf{Claim 1} \\ \gcd\left(2^{2m}-1,2^n-1\right)&>\gcd\left(2^m-1,2^n-1\right) \\ 2^{\gcd(2m,n)}-1&>2^{\gcd(m,n)}-1 &&\text{by }\textbf{Claim 2} \\ \gcd(2m,n)&>\gcd(m,n), \end{aligned} which implies that nn must have more factors of 22 than mm does.

We construct the following table for the first 3030 positive integers:

[2.5ex]# of Factors of 2NumbersCount[2.25ex]01,3,5,7,9,11,13,15,17,19,21,23,25,27,2915[2.25ex]12,6,10,14,18,22,26,308[2.25ex]24,12,20,284[2.25ex]38,242[2.25ex]4161\begin{array}{c|c|c} && \\ [-2.5ex] \boldsymbol{\#}\textbf{ of Factors of }\boldsymbol{2} & \textbf{Numbers} & \textbf{Count} \\ \hline && \\ [-2.25ex] 0 & 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29 & 15 \\ && \\ [-2.25ex] 1 & 2,6,10,14,18,22,26,30 & 8 \\ && \\ [-2.25ex] 2 & 4,12,20,28 & 4 \\ && \\ [-2.25ex] 3 & 8,24 & 2 \\ && \\ [-2.25ex] 4 & 16 & 1 \\ \end{array} To count the ordered pairs (m,n),(m,n), we perform casework on the number of factors of 22 that mm has:

  1. If mm has 00 factors of 2,2, then mm has 1515 options and nn has 8+4+2+1=158+4+2+1=15 options. So, this case has 1515=22515\cdot15=225 ordered pairs.

  2. If mm has 11 factor of 2,2, then mm has 88 options and nn has 4+2+1=74+2+1=7 options. So, this case has 87=568\cdot7=56 ordered pairs.

  3. If mm has 22 factors of 2,2, then mm has 44 options and nn has 2+1=32+1=3 options. So, this case has 43=124\cdot3=12 ordered pairs.

  4. If mm has 33 factors of 2,2, then mm has 22 options and nn has 11 option. So, this case has 21=22\cdot1=2 ordered pairs.

Together, the answer is 225+56+12+2=295.225+56+12+2=\boxed{295}.

~Lcz ~MRENTHUSIASM

Solution 2

Consider any ordered pair (m,n)(m,n) such that gcd(2m+1,2n1)>1\gcd(2^m+1, 2^n-1) > 1. There must exist some odd number p1p\ne 1 such that 2m1(modp)2^m \equiv -1 \pmod{p} and 2n1(modp)2^n \equiv 1 \pmod{p}. Let dd be the order of 22 modulo pp. Note that 22m1(modp)2^{2m} \equiv 1 \pmod{p}. From this, we can say that 2m2m and nn are both multiples of dd, but mm is not. Thus, we have v2(n)v2(d)v_2(n) \ge v_2(d) and v2(m)+1=v2(d)v_2(m) + 1 = v_2(d). Substituting the latter equation into the inequality before gives v2(n)v2(m)+1v_2(n) \ge v_2(m)+1. Since v2(n)v_2(n) and v2(m)v_2(m) are integers, this implies v2(n)>v2(m)v_2(n)>v_2(m). The rest of the solution now proceeds as in Solution 1.

~Sedro

Remarks

Claim 1 (GCD Property)

If r,s,\boldsymbol{r,s,} and t\boldsymbol{t} are positive integers such that gcd(r,s)=1,\boldsymbol{\gcd(r,s)=1,} then gcd(r,t)gcd(s,t)=gcd(rs,t).\boldsymbol{\gcd(r,t)\cdot\gcd(s,t)=\gcd(rs,t).}

As rr and ss are relatively prime (have no prime divisors in common), this property is intuitive.

~MRENTHUSIASM

Claim 2 (Olympiad Number Theory Lemma)

If u,a,\boldsymbol{u,a,} and b\boldsymbol{b} are positive integers such that u2,\boldsymbol{u\geq2,} then gcd(ua1,ub1)=ugcd(a,b)1.\boldsymbol{\gcd\left(u^a-1,u^b-1\right)=u^{\gcd(a,b)}-1.}

There are two proofs to this claim, as shown below.

~MRENTHUSIASM

Claim 2 Proof 1 (Euclidean Algorithm)

If a=b,a=b, then gcd(a,b)=a=b,\gcd(a,b)=a=b, from which the claim is clearly true.

Otherwise, let a>ba>b without the loss of generality. For all integers pp and qq such that p>q>0,p>q>0, the Euclidean Algorithm states that

gcd(p,q)=gcd(pq,q)==gcd(pmodq,q).\gcd(p,q)=\gcd(p-q,q)=\cdots=\gcd(p\operatorname{mod}q,q). We apply this result repeatedly to reduce the larger number:

gcd(ua1,ub1)=gcd(ua1uab(ub1),ub1)=gcd(uab1,ub1).\gcd\left(u^a-1,u^b-1\right)=\gcd\left(u^a-1-u^{a-b}\left(u^b-1\right),u^b-1\right)=\gcd\left(u^{a-b}-1,u^b-1\right). Continuing, we have

gcd(ua1,ub1)=gcd(uab1,ub1) =gcd(ugcd(a,b)1,ugcd(a,b)1)=ugcd(a,b)1,\begin{aligned} \gcd\left(u^a-1,u^b-1\right)&=\gcd\left(u^{a-b}-1,u^b-1\right) \\ & \ \vdots \\ &=\gcd\left(u^{\gcd(a,b)}-1,u^{\gcd(a,b)}-1\right) \\ &=u^{\gcd(a,b)}-1, \end{aligned} from which the proof is complete.

~MRENTHUSIASM

Claim 2 Proof 2 (Bézout's Identity)

Let d=gcd(ua1,ub1).d=\gcd\left(u^a-1,u^b-1\right). It follows that ua1(modd)u^a\equiv1\pmod{d} and ub1(modd).u^b\equiv1\pmod{d}.

By Bézout's Identity, there exist integers xx and yy such that ax+by=gcd(a,b),ax+by=\gcd(a,b), so

ugcd(a,b)=uax+by=(ua)x(ub)y1(modd),u^{\gcd(a,b)}=u^{ax+by}=(u^a)^x\cdot(u^b)^y\equiv1\pmod{d}, from which ugcd(a,b)10(modd).u^{\gcd(a,b)}-1\equiv0\pmod{d}. We know that ugcd(a,b)1d.u^{\gcd(a,b)}-1\geq d.

Next, we notice that

ua1=(ugcd(a,b)1)(uagcd(a,b)+ua2gcd(a,b)+ua3gcd(a,b)++1),ub1=(ugcd(a,b)1)(ubgcd(a,b)+ub2gcd(a,b)+ub3gcd(a,b)++1).\begin{aligned} u^a-1&=\left(u^{\gcd(a,b)}-1\right)\left(u^{a-\gcd{(a,b)}}+u^{a-2\gcd{(a,b)}}+u^{a-3\gcd{(a,b)}}+\cdots+1\right), \\ u^b-1&=\left(u^{\gcd(a,b)}-1\right)\left(u^{b-\gcd{(a,b)}}+u^{b-2\gcd{(a,b)}}+u^{b-3\gcd{(a,b)}}+\cdots+1\right). \end{aligned} Since ugcd(a,b)1u^{\gcd(a,b)}-1 is a common divisor of ua1u^a-1 and ub1,u^b-1, we conclude that ugcd(a,b)1=d,u^{\gcd(a,b)}-1=d, from which the proof is complete.

~MRENTHUSIASM

Video Solution

https://youtu.be/h3awf7yhGZ4

~MathProblemSolvingSkills.com

Video Solution by Interstigation

https://youtu.be/kasgsb0Rge4

~Interstigation