Smatchcube's website 🌍


Exercise 1.25

Alyssa’s code is correct but as explained in footnote 46, it’s faster to deal with small numbers. Alyssa’s procedure is explicitly computing the exponential so the numbers dealt with become very large. It’s inneficient.