(32SII) Solving a Single Congruence Equation for the HP 32Sii
|
03-06-2019, 04:50 AM
(This post was last modified: 03-10-2019 08:18 PM by Albert Chan.)
Post: #4
|
|||
|
|||
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii
This version handle cases when a (mod n) has no inverse
Code: def LC(a,b,n): >>> LC(5, 3, 17) # 1 solution (4, 17) >>> LC(123,320,777) # no solution () >>> LC(123,321,777) # 3 solutions (mod 777) (110, 259) >>> [ 123*x % 777 for x in range(110,777,259)] [321, 321, 321] |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(32SII) Solving a Single Congruence Equation for the HP 32Sii - Eddie W. Shore - 01-16-2014, 03:16 AM
RE: Solving a Single Congruence Equation for the HP 32Sii - Thomas Klemm - 01-16-2014, 05:58 AM
RE: Solving a Single Congruence Equation for the HP 32Sii - Thomas Klemm - 01-17-2014, 09:04 PM
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii - Albert Chan - 03-06-2019 04:50 AM
RE: (32SII) Solving a Single Congruence Equation for the HP 32Sii - Albert Chan - 03-10-2019, 07:41 PM
|
User(s) browsing this thread: 3 Guest(s)