modular question

Revision en1, by Axial-Tilted, 2024-04-05 06:55:44

given a modular equation k = ax mod b where we know k and a and b find the smallest possible integer number for x

example (15 = 8x mod 25) , here the set of x that satisfy it up to the smallest integer are [1.875 , 3.75 , 5] but the smallest integer number is 5 how do i find the smallest integer number that satisfies the equation in o(1) or o(logb) anything thats not o(b) and above

searched alot and all i was able to find is the usage of EEX but i dont think its what iam looking for also modular inverse doesnt necessarily work since b (the mod) might not coprime with a or k

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Axial-Tilted 2024-04-05 06:55:44 606 Initial revision (published)