[Solved] Cannot find the value of X in Java 42L + -37L * X == 17206538691L
It’s not completely clear what you are looking for, but note that java long arithmetic is effectively done mod 264. You can investigate modular inverses and the extended euclidean algorithm yourself, as well as how java handles integer overflow. The BigInteger class makes doing these experiments relatively easily, as this example shows. public class Main … Read more