MathDB
Euclidean Step

Source: 2023 Tuymaada Junior P6

July 12, 2023
number theoryEuclidean algorithm

Problem Statement

An <spanclass=latexitalic>Euclideanstep</span><span class='latex-italic'>Euclidean step</span> transforms a pair (a,b)(a, b) of positive integers, a>ba > b, to the pair (b,r)(b, r), where rr is the remainder when a is divided by bb. Let us call the <spanclass=latexitalic>complexity</span><span class='latex-italic'>complexity</span> of a pair (a,b)(a, b) the number of Euclidean steps needed to transform it to a pair of the form (s,0)(s, 0). Prove that if adbc=1ad - bc = 1, then the complexities of (a,b)(a, b) and (c,d)(c, d) differ at most by 22.