PUZZLE #3817: Euclidean Algorithm (diff 1)
Euclid's algorithm finds the GCD of two numbers through repeated division. Given a = 168 and b = 72, run the Euclidean algorithm and count the number of division steps. Steps mod 26 → letter.
DATA
| A |
168
|
| B |
72
|
| Hint |
While b ≠ 0: (a, b) = (b, a % b). Starting from (168, 72), it takes 2 steps. 2 % 26 = 2 → 'c'.
|
| Answer Format |
single lowercase letter
|
author's note: Pool fill: euclidean-algorithm diff 1
— website sponsored —
[ ad space ]