Olympiad Maths Prep

Track / Stage 5 / 287 of 400 #887 of 2000

Problem 887

AIME late
Number theory Difficulty 5.7 Prove it

Lemma 2.2. If cc and dd are integers and c=dq+rc=d q+r where cc and dd are integers, then (c,d)=(d,r)(c, d)=(d, r).

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Proof. If an integer ee divides both cc and dd, then since r=cdqr=c-d q, Proposition 1.4 shows that ere \mid r. If ede \mid d and ere \mid r, then since c=dq+rc=d q+r, from Proposition 1.4, we see that ece \mid c. Since the common divisors of cc and dd are the same as the common divisors of dd and rr, we see that (c,d)=(d,r)(c, d)=(d, r).

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