I'm trying to teach myself how to calculate xn, which is obtained thru linear congruence and given N
My example is: 99x==1(mod17) Which is 14x==1(mod17)
Now here is my problem. When I try finding the result to the equation, my lowest result is -6 (14x6 = 17x5)
However, when I input the problem into wolfram or other solvers, result is 11. How so, am I doing something wrong entirely?
If we only allow positive integers as solutions $11$ is the smallest (which is congruent to $-6$ mod $17$)