Let $1\leq y\leq x\leq 2020$ be natural numbers.
Find an upper bound for the number of iterations over the Euclidean algorithm on $(x,y)$.
I don't have any idea how to solve it. Is it possible to explain how to find the upper bound? I can run a Python code but I would like to understand the math.
EDIT: Actually tried to run the code but it didn't give me much information.
The highest number of iterations alway occurs when $x(x,y)$ are consecutive Fibonacci numbers so the max number of iterations is the "ordinal" number of the lesser Fibonacci number that is greater than or equal to the lesser of the two inputs. Note that entering the greater number 2nd will result in one more iteration.
Here is a sample run comparing iterations for all pairs up to $100$ and displaying only the first time an iteration count is greater than the previous highest count.