In [[wp:modular arithmetic|modular arithmetic]], the '''modular multiplicative inverse''' of an [[integer]] <big> ''a'' </big> [[wp:modular arithmetic|modulo]] <big> ''m'' </big> is an integer <big> ''x'' </big> such that
It can be shown that such an inverse exists if and only if <big> ''a'' </big> and <big> ''m'' </big> are [[wp:coprime|coprime]], but we will ignore this for this task.
;Task:
Either by implementing the algorithm, by using a dedicated library or by using a built-in function in
your language, compute the modular inverse of 42 modulo 2017.