in Maple 2025 on Linux, I see random Error, (in evala/Factors) the modular inverse does not exist from call to allvalues().
Sometimes it happens and sometimes not. Any explanation of this?
Not able to reproduce it on Maple 2024.2
It seems Maple uses random number generatror to decide when to generate an internal error as I am not able to see a pattern.
Download why_fail_sometimes_may_11_2025_V2.mw
Update was able to produce this also in Maple 2024.2 on windows
Download modular_inverse_maple_2024_2.mw