use euler.InverseMod instead of custom
solved 365