|   | 1 |  initial version  | 
You can patch Sage: make the change
diff --git a/src/sage/rings/finite_rings/integer_mod.pyx b/src/sage/rings/finite_rings/integer_mod.pyx
index 738d4b05ab..7e0eb624cd 100644
--- a/src/sage/rings/finite_rings/integer_mod.pyx
+++ b/src/sage/rings/finite_rings/integer_mod.pyx
@@ -1863,7 +1863,7 @@ cdef class IntegerMod_abstract(FiniteRingElement):
         return self._mul_(~right)
     def _repr_(self):
-        return str(self.lift())
+        return "mod({},{})".format(self.lift(), self.modulus())
     def _latex_(self):
         return str(self)
Then run "sage -b" to rebuild the affected files.
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.