HMMT 十一月 2022 · 团队赛 · 第 7 题
HMMT November 2022 — Team Round — Problem 7
题目详情
英文原题
- [45] Compute the number of ordered pairs of positive integers ( a, b ) satisfying the equationgcd( a, b ) · a + b = 10000 .2
解析
英文解析
- [45] Compute the number of ordered pairs of positive integers ( a, b ) satisfying the equationgcd( a, b ) · a + b = 10000 .2
Proposed by: Vidur Jasuja
Answer: 99
′ ′ 2 ′ ′ 2 2
Solution 1: Let gcd( a, b ) = d, a = da , b = db . Then, d ( a + b ) = 100 . Consider each divisor d of
1002
′ ′ 2
100 . Then, we need to find the number of solutions in coprime integers to a + b = . Note thatd 2
100 1002
′
every b < 100 /d coprime to satisfies this equation, which is equivalent to being coprime to , sod d 2
then there are φ choices for each d , except for d = 100, which would count the solution (0 , 100).100
100Pd
Then we just need φ − 1 = 100 − 1 = 99 .
d | nd
Solution 2: Note that b must be at most 99 in order for a to be positive. Now we claim that eachchoice of b ∈ { 1 , 2 , . . . , 99 } corresponds to exactly one value of a that satisfies the equation.
To see why this is true, we rewrite the formula asgcd( a, b ) · a = (100 − b )(100 + b ) .
For any prime p , let v ( n ) be the largest integer k such that p | n . We wish to show that once we fix b ,kpthe value v ( a ) is uniquely determined for all p (which will give us a unique solution for a ). Applyingpv to both sides of the equation gives uspmin( v ( b ) , v ( a )) + v ( a ) = v (100 − b ) + v (100 + b ) .
p p p p p
We immediately see that there is at most one solution for v ( a ) since the left-hand side increases withpv ( a ). Further, as we increment v ( a ), the left-hand side takes on all even numbers up to 2 v ( b ),
p p pand then all integers larger than 2 v ( b ). So to show that a solution exists, we need to prove that theright-hand side is always either even or at least 2 v ( b ).pp
If v ( b ) ̸ = v (100), then v (100 − b ) = v (100 + b ) = min( v (100) , v ( b )). In this case, v (100 −
p p p p p p pb ) + v (100 + b ) is clearly even. Otherwise, assume v ( b ) = v (100). Then v (100 − b ) ≥ v ( b ) andp p p p pv (100 + b ) ≥ v ( b ), so v (100 − b ) + v (100 + b ) ≥ 2 v ( b ) as desired. Thus, there is always a uniquep p p p psolution for v ( a ). Once we fix 1 ≤ b ≤ 99, the value of a is uniquely determined, so the answer is 99. p