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