I am using euclidean algorithm to find if 7 inverse exists in mod12
I ended up with
So the inverse of 7 is -5
and this is what the instructor wrote in the notes but he went from
what happened here and how did he end up with 7 inverse being 7 in the field of mod12????