So I have a system of non-linear congruence equations (i may be wrong in terms): \begin{cases} x^3 \equiv 21\ (\textrm{mod}\ 23) \\ x^5 \equiv 17\ (\textrm{mod}\ 23) \end{cases} Somewhere I've read that to solve this system one should:
- Find the solution of $3\cdot a + 5\cdot b = 1$ with Extended Euclidean Algorithm
- Use $a$ and $b$ values from previous step in the next formula: $x \equiv 21^a\times17^b\ (\textrm{mod}\ 23)$
- If $a$ or $b$ is negative, then calculate the modular inverse of $21$ or $17$ and use it in second formula with $-a$ or $-b$
And I don't understand why is it working. I've tried to perform some calculations to get the second formula but didn't succeeded. : (
Can you please explain me this?
I finally got it. Jack D'Aurizio's solution is correct, but in my case i just wanted to understand why is solution from the question working.
So we have a system of non-linear congruence equations.
So as you can see, we've used Extended Euclidean Algorithm to find special exponents that will lead to reducing $x$'s exponent after equations multiplication.