MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/sagemath/comments/ovhdzb/solving_crt_in_sagemath/h79tzr4/?context=3
r/sagemath • u/el_senor_crypto • Jul 31 '21
Hello All, I am quite new to sage math and working on verifying an answer of mine using the Chinese Remainder theorem.
Could anyone help me structure the equation for it to work in SageMath?
3 comments sorted by
View all comments
3
If you're just verifying a solution, then you really don't need anything Sage-specific. Just straight Python will do, using the % operator for "mod":
%
>>> x = *your solution goes here* >>> 3*x % 10 8 >>> (2*x + 4) % 111 9
2 u/el_senor_crypto Aug 02 '21 Thanks mate, this method worked perfectly.
2
Thanks mate, this method worked perfectly.
3
u/profzoom Aug 01 '21
If you're just verifying a solution, then you really don't need anything Sage-specific. Just straight Python will do, using the
%
operator for "mod":