MathCastle
Number TheoryHardFactors & Multiples

Factors & Multiples · Hard problem

Running the Euclidean algorithm on aa and 144144 starts with a=5⋅144+ra = 5\cdot144 + r, takes exactly three divisions in all, and gives gcd⁡(a,144)=16\gcd(a, 144) = 16. How many values of aa are possible?