Solving modular linear equations
PROBLEM
Find solutions to the equations
MOD(A*X,N)=MOD(B,N)
IMPLEMENTATION
Unit: program
Parameters: an arbitrary integers A, B, a positive integer N Output: program displays on the screen all solutions to the equations MOD(A*X,N)=MOD(B,N) Interface: functions EXEUCLID and MOD
CONNECTIONS
Literature
Cormen T. H., Leiserson Ch. E., Rivest R. L. Introduction to Algorithms The MIT Press, Cambridge, 1990
|
|
|
|
|
|
![]()