I am starting with a formula like $w = ix \bmod{n}$
Originally, I knew $i$, $x$, and $n$, so solving for $w$ was trivial.
But now I'm in the situation where $w$, $i$, $n$ are known, but $x$ is unknown.
$i$ and $n$ are relatively prime to each other.
I don't know if it's possible to algebraically manipulate this statement to get $x$ isolated by itself, and the rest to the other side of the equation.
I had myself convinced that multiplying both sides by the modulo inverse of ($ix \pmod{n}$) would be the breakthrough. But then I realized, "to calculate that, I need to know the value of $ix$ in the first place. So I'm still stuck, because I don't know $x$ and that's what I want to find.
Maybe I'm off on a totally incorrect tangent here. Not sure how I can solve for $x$ in this equation.
(For those who didn't get me)
What I'm trying to ask is, I have this equation $ix \bmod n$ that generates a remainder that I assign to $w$. But my situation now is, I know the remainder $w$ value, but I don't know the value of $x$ any more. If this was a simple algebra statement $w=ix$, I'd just divide both sides by $i$ to isolate the $x$ on one side. But I've got this '$\bmod n$' operation on the equation too. I don't know how to 'get rid of it' so that I can then divide both sides by $i$, leaving me with $x$ by itself on one side. (I want to calculate value of $x$, knowing the other things)
%
, while unheard of in mathematics, is standard notation for the remainder in programming, in C-language in particular. Also, those who want to make a distinction use\bmod
(as in binary mod) as the TeX-command here. Your choice of\pmod
is used, when we write a congruence. I am not a TeXpert, but I think there are differences in spacing at least, and, of course, the parens. So $ix\bmod n$ is the result of a remainder operation, which is what the OP meant. – Jyrki Lahtonen Jun 27 '21 at 07:11\pmod
may not always be right in the place, but looking at the statement as if it were a program, it mostly seemed to me as assigning the remainder of division of the product $ix$ by $n$. – Spectre Jun 27 '21 at 08:02