返回题库

AIME 2020 I · 第 12 题

AIME 2020 I — Problem 12

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

Let nn be the least positive integer for which 149n2n149^n-2^n is divisible by 335577.3^3\cdot5^5\cdot7^7. Find the number of positive integer divisors of n.n.

解析

Solution 1.1

As usual, denote vp(n)v_p(n) the highest power of prime pp that divides nn. Lifting the Exponent shows that

3=v3(149n2n)=v3(n)+v3(147)=v3(n)+13=v_3(149^n-2^n) = v_3(n) + v_3(147) = v_3(n)+1 so thus, 323^2 divides nn. It also shows that

7=v7(149n2n)=v7(n)+v7(147)=v7(n)+27=v_7(149^n-2^n) = v_7(n) + v_7(147) = v_7(n)+2 so thus, 757^5 divides nn.

Now, setting n=4cn = 4c (necessitated by 149n2n(mod5)149^n \equiv 2^n \pmod 5 in order to set up LTE), we see

v5(1494c24c)=v5(1494c16c)v_5(149^{4c}-2^{4c}) = v_5(149^{4c}-16^{c}) and since 14941(mod25)149^{4} \equiv 1 \pmod{25} and 16116(mod25)16^1 \equiv 16 \pmod{25} then v5(1494c24c)=v5(149416)+v5(c)=1+v5(c)v_5(149^{4c}-2^{4c})=v_5(149^4-16)+v_5(c)=1+v_5(c) meaning that we have that by LTE, 54c5^4 | c and 4544 \cdot 5^4 divides nn.

Since 323^2, 757^5 and 4544\cdot 5^4 all divide nn, the smallest value of nn working is their LCM, also 3275454=223254753^2 \cdot 7^5 \cdot 4 \cdot 5^4 = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5. Thus the number of divisors is (2+1)(2+1)(4+1)(5+1)=270(2+1)(2+1)(4+1)(5+1) = \boxed{270}.

~kevinmathz

clarified by another user

notation note from another user

Note

We were able to use LTE with 3 and 7 but not 5 because in order to use LTE, we need pxyp \mid x-y.

Obviously, 149n2n(mod3)149^n \equiv 2^n \pmod{3} implies 149n2n0(mod3)149^n - 2^n \equiv 0 \pmod{3}, so LTE works here.

Furthermore, 149n2n(mod7)149^n \equiv 2^n \pmod{7} implies 149n2n0(mod7)149^n - 2^n \equiv 0 \pmod{7}, so LTE works here.

However, when we get to the case of 5, we see that 149n2n(mod5)149^n \equiv 2^n \pmod{5} doesn't always hold; specifically, this is only valid when nn is a multiple of 44, which is why we let n=4cn = 4c in the solution.

mathboy282

Solution 1.2 (LTE + Binomial)

Follow solution 1 to get that 32753^2 \cdot 7^5 is a divisor of nn. We now take care of the 555^5 part. Rewrite 149n2n149^n-2^n as (1501)n2n(150-1)^n-2^n and assume nn is even. Since this expression is divisible by 555^5, we expand and get

(n0)(1n)(n1)(1n11501)+(n2)(1n21502)+(nn)(150n)2n0(mod55).\binom n0(1^n)-\binom n1(1^{n-1}150^1)+\binom n2(1^{n-2}150^2)\cdot\cdot\cdot+\binom nn(150^n)-2^n \equiv 0 \pmod {5^5}. Everything except the first three terms and the 2n2^n term is divisible by 555^5, so we can rewrite this as

1150n+n(n1)215022n0(mod55),1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^5}, And the following must be true:

1150n+n(n1)215022n0(mod52).1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^2}. Since 150n+n(n1)21502150n+\frac{n(n-1)}{2}150^2 divides 525^2, we can now see that

12n0(mod52).1-2^n \equiv 0 \pmod {5^2}. Solving for nn, n0(mod225)n \equiv 0 \pmod {2^2 \cdot 5}. We also know this is true:

1150n+n(n1)215022n0(mod53).1-150n+\frac{n(n-1)}{2}150^2-2^n \equiv 0 \pmod {5^3}. We know nn is divisible by 55, so 150n+n(n1)21502150n+\frac{n(n-1)}{2}150^2 divides 535^3. And now,

12n0(mod53)1-2^n \equiv 0 \pmod {5^3} gives

n0(mod2252).n \equiv 0 \pmod {2^2 \cdot 5^2}. This process can be repeated until we obtain n0(mod2254)n \equiv 0 \pmod {2^2 \cdot 5^4}. The desired solution is then simply lcm(3275,2254)\text{lcm} (3^2 \cdot 7^5, 2^2 \cdot 5^4) which yields an answer of (2+1)(5+1)(2+1)(4+1)=270(2+1)(5+1)(2+1)(4+1)=\boxed{270}.

~Marchk26

Solution 2 (Simpler, just basic mods and Fermat's theorem)

Note that for all nn, 149n2n149^n - 2^n is divisible by 1492=147149-2 = 147 by difference of nnth powers. That is 3723\cdot7^2, so now we can clearly see that the smallest nn to make the expression divisible by 333^3 is just 323^2. Similarly, we can reason that the smallest nn to make the expression divisible by 777^7 is just 757^5.

Finally, for 555^5, take (mod5)\pmod {5} and (mod25)\pmod {25} of each quantity (They happen to both be 1-1 and 22 respectively, so you only need to compute once). One knows from Fermat's theorem that the maximum possible minimum nn for divisibility by 55 is 44, and other values are factors of 44. Testing all of them(just 11,22,44 using mods-not too bad), 44 is indeed the smallest value to make the expression divisible by 55, and this clearly is NOT divisible by 2525. Therefore, the smallest nn to make this expression divisible by 555^5 is 22542^2 \cdot 5^4.

Calculating the LCM of all these, one gets 223254752^2 \cdot 3^2 \cdot 5^4 \cdot 7^5. Using the factor counting formula, the answer is 33563\cdot3\cdot5\cdot6 = 270\boxed{270}.

~Solution by thanosaops

~formatted by MY-2 and pandyhu2001

Solution 3 (Using Totient Theorem for upper bound)

For the 555^5 case, we can see that the problem implies 149n2n(mod55).149^n \equiv 2^n \pmod{5^5}.

The modular inverse of 2(mod3125)2 \pmod{3125} is the least positive integer xx such that 2x1(mod3125).2x \equiv 1 \pmod{3125}.

x=3125+12=1563    (1491563)n1(mod55).x = \frac{3125 + 1}{2} = 1563 \implies (149\cdot1563)^n \equiv 1 \pmod{5^5}. Now we can use Euler's Totient Theorem to get an upper bound for n, which states that if gcd(a,b)=1,\gcd(a,b) = 1, then aϕ(b)1(modb).a^{\phi(b)} \equiv 1 \pmod{b}. ϕ(55)=3125(115)=2500,\phi(5^5) = 3125 \cdot (1 - \frac{1}{5}) = 2500, so (1491563)2500(1137)25001(mod55).(149\cdot1563)^{2500} \equiv (1137)^{2500} \equiv 1 \pmod{5^5}.

For the number to end with 1,1, nn also needs to be a multiple of 4.4. So it's a factor of 25002500 that's also divisible by 4. We bash out the factors of 625.625. Through repeated squaring we see none of the factors work, so 25002500 must be the minimum. Therefore, n must be a multiple of 2500.2500.

Next, we consider modulo 2727:

149n2n14n2n(mod27)0(mod27).149^n - 2^n \equiv 14^n - 2^n \pmod{27} \equiv 0 \pmod{27}. 14n2n(mod27)14^n \equiv 2^n \pmod{27} 7n1(mod27)7^n \equiv 1 \pmod{27} Apply Euler's Totient Theorem again to get 7181(mod27).7^{18} \equiv 1 \pmod{27}.

Bashing the factors of 18, we find 1818 is the smallest value that works, so nn needs to be a multiple of 18.18.

For the 777^7 case we can set up another congruence:

149n2n0(mod77)    (2+721)n2n0(mod77)149^n - 2^n \equiv 0 \pmod{7^7} \implies (2 + 7 \cdot 21)^n - 2^n \equiv 0 \pmod{7^7} To continue evaluating we use the Binomial Theorem:

k=0n(nk)2nk(721)k2n0(mod77)\sum_{k=0}^{n} \binom{n}{k} 2^{n-k} (7 \cdot 21)^k - 2^n \equiv 0 \pmod{7^7} 2n+(n1)2n1(721)+(n2)2n2(721)2+2n0(mod77)\cancel{2^n} + \binom{n}{1} 2^{n-1} (7 \cdot 21) + \binom{n}{2} 2^{n-2} (7 \cdot 21)^2 + \dots \cancel{- 2^n} \equiv 0 \pmod{7^7} (n1)2n1147+(n2)2n21472+(n3)2n31473+(n4)2n414740(mod77).\binom{n}{1} \cdot 2^{n-1} \cdot 147 + \binom{n}{2} 2^{n-2} \cdot 147^2 + \binom{n}{3} 2^{n-3} \cdot 147^3 + \binom{n}{4} 2^{n-4} \cdot 147^4 \dots \equiv 0 \pmod{7^7}. Since 147=372,147 = 3 \cdot 7^2, the first term is a multiple of 72,7^2, the second is a multiple of 74,7^4, and the third is a multiple of 76.7^6. Everything after is a multiple of 77.7^7.

So nn must be a multiple of 757^5 at the minimum for these three terms to also be multiples of 77.7^7.

Putting everything together we find the smallest value of nn to be n=22325475,n = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5, so the answer is (2+1)(2+1)(4+1)(5+1)=270.(2+1)(2+1)(4+1)(5+1) = \boxed{270}.

~grogg007

Solution 4 (Elementary and Thorough)

As usual, denote vp(n)v_p(n) the highest power of prime pp that divides nn. For divisibility by 333^3, notice that v3(149323)=2v_3(149^3 - 2^3) = 2 as 149323=149^3 - 2^3 = (147)(1492+2149+22)(147)(149^2 + 2\cdot149 + 2^2), and upon checking mods, 1492+2149+22149^2 + 2\cdot149 + 2^2 is divisible by 33 but not 99. In addition, 149929149^9 - 2^9 is divisible by 333^3 because 149929=(149323)(1496+149323+26)149^9 - 2^9 = (149^3 - 2^3)(149^6 + 149^3\cdot2^3 + 2^6), and the rightmost factor equates to 1+1+1(mod3)0(mod3)1 + 1 + 1 \pmod{3} \equiv 0 \pmod{3}. In fact, n=9=32n = 9 = 3^2 is the least possible choice to ensure divisibility by 333^3 because if n=a3bn = a \cdot 3^b, with 3a3 \nmid a and b<2b < 2, we write

149a3b2a3b=(1493b23b)(1493b(a1)+1493b(a2)23b+23b(a1)).149^{a \cdot 3^b} - 2^{a \cdot 3^b} = (149^{3^b} - 2^{3^b})(149^{3^b(a - 1)} + 149^{3^b(a - 2)}\cdot2^{3^b}+\cdots2^{3^b(a - 1)}). Then, the rightmost factor is equivalent to ±a(mod3)≢0(mod3)\pm a \pmod{3} \not\equiv 0 \pmod{3}, and v3(1493b23b)=b+1<3v_3(149^{3^b} - 2^{3^b}) = b + 1 < 3.

For divisibility by 777^7, we'll induct, claiming that v7(1497k27k)=k+2v_7(149^{7^k} - 2^{7^k}) = k + 2 for whole numbers kk. The base case is clear. Then,

v7(1497k+127k+1)=v7(1497k27k)+v7(14967k+27k14957k++257k1497k+267k).v_7(149^{7^{k+1}} - 2^{7^{k+1}}) = v_7(149^{7^k} - 2^{7^k}) + v_7(149^{6\cdot7^k} + 2^{7^k}\cdot149^{5\cdot7^k} + \cdots + 2^{5\cdot7^k}\cdot149^{7^k} + 2^{6\cdot7^k}). By the induction hypothesis, v7(1497k27k)=k+2v_7(149^{7^k} - 2^{7^k}) = k + 2. Then, notice that

S(k)=14967k+27k14957k++257k1497k+267k7267k(mod7)7267k(mod49).S(k) = 149^{6\cdot7^k} + 2^{7^k}\cdot149^{5\cdot7^k} + \cdots + 2^{5\cdot7^k}\cdot149^{7^k} + 2^{6\cdot7^k} \equiv 7 \cdot 2^{6\cdot7^k}\pmod{7} \equiv 7 \cdot 2^{6\cdot7^k}\pmod{49}. This tells us that S(k)S(k) is divisible by 77, but not 4949 so that v7(S(k))=1v_7\left(S(k)\right) = 1, completing our induction. We can verify that 757^5 is the least choice of nn to ensure divisibility by 777^7 by arguing similarly to the 333^3 case.

Finally, for 555^5, we take the powers of 149149 and 22 in mod 55 and mod 2525. Writing out these mods, we have that 149n2n(mod5)149^n \equiv 2^n \pmod{5} if and only if 4n4 | n, in which 149n2n1(mod5)149^n \equiv 2^n \equiv 1 \pmod{5}. So here we claim that v5(14945k245k)=k+1v_5(149^{4\cdot5^k} - 2^{4\cdot5^k}) = k + 1 and perform yet another induction. The base case is true: 51494245 | 149^4 - 2^4, but 149424116(mod25)149^4 - 2^4 \equiv 1 - 16 \pmod{25}. Now then, assuming the induction statement to hold for some kk,

v5(14945k+1245k+1)=(k+1)+v5(149445k+245k149345k++2345k14945k+2445k).v_5(149^{4\cdot5^{k+1}} - 2^{4\cdot5^{k+1}}) = (k+1) + v_5(149^{4\cdot4\cdot5^k}+2^{4\cdot5^k}\cdot149^{3\cdot4\cdot5^k}+\cdots+2^{3\cdot4\cdot5^k}\cdot149^{4\cdot5^k}+2^{4\cdot4\cdot5^k}). Note that S(k)=149445k+245k149345k++2345k14945k+2445kS'(k) = 149^{4\cdot4\cdot5^k}+2^{4\cdot5^k}\cdot149^{3\cdot4\cdot5^k}+\cdots+2^{3\cdot4\cdot5^k}\cdot149^{4\cdot5^k}+2^{4\cdot4\cdot5^k} equates to S(k)=1+245k++2165kS''(k) = 1 + 2^{4\cdot5^k} + \cdots + 2^{16\cdot5^k} in both mod 55 and mod 2525. We notice that S(k)0(mod5)S''(k) \equiv 0 \pmod{5}. Writing out the powers of 22 mod 2525, we have S(0)5(mod25)S''(0) \equiv 5 \pmod{25}. Also 2n1(mod25)2^n \equiv 1 \pmod{25} when nn is a multiple of 2020. Hence for k>0k > 0, S(k)5mod25S''(k) \equiv 5 \mod{25}. Thus, v5(S(k))=1v_5\left(S'(k)\right) = 1, completing our induction. Applying the same argument from the previous two cases, 4544\cdot5^4 is the least choice to ensure divisibility by 555^5.

Our answer is the number of divisors of lcm(32,75,2254)=22325475\text{lcm}(3^2, 7^5, 2^2\cdot5^4) = 2^2 \cdot 3^2 \cdot 5^4 \cdot 7^5. It is (2+1)(2+1)(4+1)(5+1)=270(2 + 1)(2 + 1)(4 + 1)(5 + 1) = \boxed{270}.

~hnkevin42

Solution 5 (Official MAA)

Analyze each prime power separately. Start with the case of 333^3. By the Binomial Theorem,

149n2n=(147+2)n2n=(n1)1472n1+(n2)14722n2+(n3)14732n3+.\begin{aligned} 149^n - 2^n &= (147+2)^n - 2^n \\ &= \binom n1 \cdot 147 \cdot 2^{n-1} + \binom n2 \cdot 147^2 \cdot 2^{n-2}\\ &\qquad+ \binom n3 \cdot 147^3 \cdot 2^{n-3} + \cdots. \end{aligned} Because 147147 is divisible by 33, all terms after the first two are divisible by 333^3, and the exponent of 33 in the first term is less than that in the second term. Hence it is necessary and sufficient that 33147n3^3 \mid 147n, that is, 32n3^2 \mid n. For the 777^7 case, consider the same expansion as in the previous case. Because 147147 is divisible by 49=7249 = 7^2, all terms after the first three are divisible by 777^7, and the exponent of 77 in the first term is less than that in the second and third term. Hence it is necessary and sufficient that 77147n7^7 \mid 147n, that is, 75n7^5 \mid n. For the 555^5 case, working modulo 55 gives 149n2n4n2n=2n(2n1)(mod5)149^n - 2^n \equiv 4^n - 2^n = 2^n(2^n-1) \pmod 5, so it must be that 4n4 \mid n. Let n=4mn = 4m, and let c=149424=(149222)(1492+22)=14715122205c = 149^4 - 2^4 = (149^2-2^2)(149^2+2^2) = 147 \cdot 151 \cdot 22205. Note that c5\frac c5 is an integer not divisible by 55. Expand by the Binomial Theorem again to get

(1494)m(24)m=(c+16)m(16)m=(m1)c16m1+(m2)c216m2+(m3)c316m3+(m4)c416m4+.\begin{aligned} (149^4)^m - (2^4)^m &= (c+16)^m - (16)^m \\ &= \binom m1 \cdot c \cdot 16^{m-1} + \binom m2 \cdot c^2 \cdot 16^{m-2} \\ &\qquad+ \binom m3 \cdot c^3 \cdot 16^{m-3} + \binom m4 \cdot c^4 \cdot 16^{m-4} + \cdots. \end{aligned} All terms after the first four are divisible by 555^5, and the exponent of 55 in the first term is less than that in the second, third, or fourth term. Hence it is necessary and sufficient that 55cm5^5 \mid cm. Thus 54m5^4 \mid m, and it follows that 454n4 \cdot 5^4 \mid n. Therefore the least nn is 32(2254)753^2 \cdot (2^2 \cdot 5^4) \cdot 7^5. The requested number of divisors is (1+2)(1+2)(1+4)(1+5)=270(1+2)(1+2)(1+4)(1+5) = 270.

The results of the above cases can be generalized using the following lemma.

Lifting the Exponent Lemma: Let pp be an odd prime, and let aa and bb be integers relatively prime to pp such that p(ab)p \mid (a-b). Let nn be a positive integer. Then the number of factors of pp that divide anbna^n - b^n is equal to the number of factors of pp that divide aba-b plus the number of factors of pp that divide nn.

Video Solution

https://www.youtube.com/watch?v=O0BprEOVkjo ~ Math Gold Medalist