Post Reply 
Solving a Single Congruence Equation
04-18-2014, 05:24 PM (This post was last modified: 07-25-2015 10:33 PM by Thomas Klemm.)
Post: #1
Solving a Single Congruence Equation
This program for the HP-42S solves for x in the equation:

A * x = B mod N

Example:
5 * x = 3 mod 17

Solution:
5 ENTER 3 ENTER 17
XEQ "CONG"
4

[Image: attachment.php?aid=2367]

Remark:
Since overflow is avoided it's possible to solve:
999,999,999,989 * x = 1 mod 999,999,999,999

Solution:
899,999,999,999


Attached File(s) Thumbnail(s)
   

.zip  cong.zip (Size: 788 bytes / Downloads: 11)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Solving a Single Congruence Equation - Thomas Klemm - 04-18-2014 05:24 PM



User(s) browsing this thread: 1 Guest(s)