Maths Olympiad Prep

Track / Stage 5 / 239 of 400 #839 of 1964

Problem 839

AIME late
Number theory Difficulty 5.6 Find the answer

Let's determine the greatest common divisor of the numbers AA and CC, as well as BB and CC.

A=1775+3062117331735B=1735+3062117731775C=1734+306212+1774 \begin{aligned} & A=177^{5}+30621 \cdot 173^{3}-173^{5} \\ & B=173^{5}+30621 \cdot 177^{3}-177^{5} \\ & C=173^{4}+30621^{2}+177^{4} \end{aligned}

A number or a short expression. Spacing, $ signs and \frac vs / are all fine.

Official solution

Noticing that 30621=17317730621=173 \cdot 177, and introducing the short notations 177=a,173=b177=a, 173=b, our numbers are

A=a5+ab4b5B=b5+a4ba5C=a4+a2b2+b4 \begin{aligned} & A=a^{5}+a b^{4}-b^{5} \\ & B=b^{5}+a^{4} b-a^{5} \\ & C=a^{4}+a^{2} b^{2}+b^{4} \end{aligned}

Accordingly, BB results from AA by swapping aa and bb. This swap maps CC onto itself, so it suffices to examine the question of AA and CC.

CC can be transformed as follows:

(a2+b2)2a2b2=(a2+b2ab)(a2+b2+ab) \left(a^{2}+b^{2}\right)^{2}-a^{2} b^{2}=\left(a^{2}+b^{2}-a b\right)\left(a^{2}+b^{2}+a b\right)

Based on this, we will separately consider the question of the greatest common divisor with AA for each of the two factors.

A natural question is whether there exist M,NM, N, coefficients independent of aa and bb, such that the polynomial

a3+Ma2b+Nab2b3 a^{3}+M a^{2} b+N a b^{2}-b^{3}

of aa and bb, when multiplied by the first factor of CC, gives AA. This is satisfied if the coefficients of the like terms in AA and the product are respectively equal (which we have already ensured for the coefficients of a5a^{5} and b5b^{5} by choosing the coefficients of a3a^{3} and b3b^{3}), that is,

a4b from the coefficients 0=M1a3b2 from the coefficients 0=NM+1a2b3 from the coefficients 0=1N+Mab4 from the coefficients 1=1+N \begin{array}{lll} a^{4} b & \text { from the coefficients } & 0=M-1 \\ a^{3} b^{2} & \text { from the coefficients } & 0=N-M+1 \\ a^{2} b^{3} & \text { from the coefficients } & 0=-1-N+M \\ a b^{4} & \text { from the coefficients } & 1=1+N \end{array}

It is easy to see that there is a solution: M=1,N=0M=1, N=0, so AA is divisible by a2ab+b2a^{2}-a b+b^{2}, the quotient being a3+a2bb3a^{3}+a^{2} b-b^{3}; further, we seek the common divisor of this and the second factor of C(1)C(\mathbf{1}).

According to a known identity, the quotient

(a3b3)+a2b=(ab)(a2+ab+b2)+a2b \left(a^{3}-b^{3}\right)+a^{2} b=(a-b)\left(a^{2}+a b+b^{2}\right)+a^{2} b

Accordingly, if there exists the common divisor mentioned now, it is also a divisor of the last term on the right side, a2ba^{2} b. The divisors of this (since in our problem aa and bb are relatively prime, as bb is prime and not a divisor of aa) are the divisors of bb and a2a^{2}. However, bb has no common divisor greater than 1 with a2+ab+b2a^{2}+a b+b^{2}, because aa is a divisor of bb and b2b^{2}, but a2a^{2} is not divisible by any divisor of bb greater than 1, and a2a^{2} has no common divisor greater than 1 with a2+ab+b2a^{2}+a b+b^{2}, because the sum of the last two terms is b(a+b)b(a+b), where bb is prime and a+ba+b is relatively prime to bb, to aa, and thus to a2a^{2}.

Accordingly, the greatest common divisor of AA and CC is a2ab+b2=177230621+1732=30637a^{2}-a b+b^{2}=177^{2}-30621+173^{2}=30637, and this is also the greatest common divisor of the pair B,CB, C based on the aforementioned (swap) relationship between AA and BB, since swapping aa and bb does not change a2+ab+b2a^{2}+a b+b^{2}, and the reasoning applied to a2ba^{2} b can essentially be repeated for b2ab^{2} a.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.