Olympiad Maths Prep

Track / Stage 5 / 103 of 400 #703 of 2000

Problem 703

AIME late
Number theory Difficulty 5.3 Find the answer

Let aa and bb be positive integers that are relatively prime, and let A=8a+3bA=8a+3b and B=3a+2bB=3a+2b. The greatest common divisor of AA and BB is not 1. What is the greatest common divisor of AA and BB?

Official solution

Solution. Let dd be the greatest common divisor of AA and BB. If dAd \mid A and dBd \mid B, then d8B3A=7bd \mid 8B - 3A = 7b, and d2A3B=7ad \mid 2A - 3B = 7a.

We have found that dd is a common divisor of 7a7a and 7b7b. Considering that aa and bb are coprime, the greatest common divisor of 7a7a and 7b7b is 7. (This follows from the fundamental theorem of arithmetic, which states that every natural number can be uniquely expressed as a product of prime numbers, disregarding the order of the factors.)

Accordingly, dd is a divisor of 7, so d=1d=1 or d=7d=7. We know that AA and BB are not coprime, i.e., (A;B)1(A; B) \neq 1, from which it follows that (A;B)=7(A; B)=7.

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