residue

logistic_guy

Full Member
Joined
Apr 17, 2024
Messages
588
here is the question

Suppose that n=11021=103107\displaystyle n = 11021=103 \cdot 107 and that x41686(\displaystyle x^4 \equiv 1686 ( mod 11021)\displaystyle 11021). Find the least nonnegative residue of x2\displaystyle x^2 modulo 11021\displaystyle 11021.


my attemb
i think this question can be solved by legendre symbol (ap)\displaystyle (\frac{a}{p})
i find
x4168638(\displaystyle x^4 \equiv 1686 \equiv 38( mod 103)\displaystyle 103)
x4168681(\displaystyle x^4 \equiv 1686 \equiv 81( mod 107)\displaystyle 107)
how to solve these equations?😕
 
x481=(x29)(x2+9)0(mod107)(38103)=38511(mod103)\begin{array}{lll} x^4-81 &=(x^2-9)(x^2+9)\equiv 0 \pmod{107}\\[6pt] \left(\dfrac{38}{103}\right)&=38^{51}\equiv 1 \pmod{103}\\[6pt] \end{array}
That means 38 38 is a quadratic residue modulo 103 103 and we find the roots 48,55, 48,55, so that

x438=(x248)(x255)0(mod103)\begin{array}{lll} x^4-38 &=(x^2-48)(x^2-55)\equiv 0\pmod{103}\\[6pt] \end{array}
Thus
(107(x29)107(x2+9))(103(x248)103(x255)) \left(107\,|\,(x^2-9)\quad \vee \quad 107\,|\,(x^2+9)\right)\quad \wedge \quad\left(103\,|\,(x^2-48)\quad\vee\quad 103\,|\,(x^2-55)\right) and we are looking for a number a=x2 a=x^2 such that
a±9(mod107) AND (a48(mod103) OR a55(mod103)) a\equiv \pm 9\pmod{107} \text{ AND } \left(a\equiv 48 \pmod{103}\text{ OR }a\equiv 55\pmod{103}\right)which leaves us with four possibilities, each of which can be solved (or not) by the Chinese Remainder Theorem.
1703
 
Last edited:
x481=(x29)(x2+9)0(mod107)(38103)=38511(mod103)\begin{array}{lll} x^4-81 &=(x^2-9)(x^2+9)\equiv 0 \pmod{107}\\[6pt] \left(\dfrac{38}{103}\right)&=38^{51}\equiv 1 \pmod{103}\\[6pt] \end{array}
That means 38 38 is a quadratic residue modulo 103 103 and we find the roots 48,55, 48,55, so that

x438=(x248)(x255)0(mod103)\begin{array}{lll} x^4-38 &=(x^2-48)(x^2-55)\equiv 0\pmod{103}\\[6pt] \end{array}
Thus
(107(x29)107(x2+9))(103(x248)103(x255)) \left(107\,|\,(x^2-9)\quad \vee \quad 107\,|\,(x^2+9)\right)\quad \wedge \quad\left(103\,|\,(x^2-48)\quad\vee\quad 103\,|\,(x^2-55)\right) and we are looking for a number a=x2 a=x^2 such that
a±9(mod107) AND (a48(mod103) OR a55(mod103)) a\equiv \pm 9\pmod{107} \text{ AND } \left(a\equiv 48 \pmod{103}\text{ OR }a\equiv 55\pmod{103}\right)which leaves us with four possibilities, each of which can be solved (or not) by the Chinese Remainder Theorem.
1703
Thanks professor fresh_42 for the share. I need to analyze this problem further.
 
The second line with the Legendre symbol used Euler's identity
(ap)a(p1)/2(modp). \left(\dfrac{a}{p}\right)\equiv a^{(p-1)/2}\pmod{p}. I used the Windows calculator to determine the value. To do it manually you could start with 3822(mod103) 38^2\equiv 2\pmod{103} which leads to 3851=38225+1=(382)253822538=(28)323850376=125000766176=46361(mod103). 38^{51}=38^{2\cdot 25 +1}=\left(38^2\right)^{25}\cdot 38\equiv 2^{25}\cdot 38=\left(2^8\right)^3\cdot 2\cdot 38\equiv 50^3\cdot 76=125000 \cdot 76 \equiv 61\cdot 76=4636\equiv 1\pmod{103}.
In order to find x438=(x248)(x255)(mod103) x^4-38=(x^2-48)\cdot (x^2-55) \pmod{103} consider the ansatz x438=(x2a)(x2b)=x4(a+b)x2+ab. x^4-38=(x^2-a)(x^2-b)=x^4-(a+b)x^2+ab. This means we need a+b0(mod103) a+b \equiv 0\pmod{103} and ab3865(mod103). ab\equiv -38\equiv 65\pmod{103}. I used a+b=103 a+b=103 and set ab65=103t. ab-65=103 \cdot t . That gave me a quadratic polynomial in a a with a parameter t t after substitution of b. b. It has two solutions depending on the parameter t. t. However, we know that 0a<103. 0\le a< 103. This condition allows us to find the value of t t and finally the two values a{48,55}. a\in \{48,55\}.
 
Last edited:
Let us share the spoiler.

Are you saying x21703 ( mod 11021)\displaystyle x^2 \equiv 1703 \ ( \ \text{mod} \ 11021) and 1703\displaystyle 1703 is the least nonnegative residue of x2\displaystyle x^2?
 
Let us share the spoiler.

Are you saying x21703 ( mod 11021)\displaystyle x^2 \equiv 1703 \ ( \ \text{mod} \ 11021) and 1703\displaystyle 1703 is the least nonnegative residue of x2\displaystyle x^2?
Yes. If you use the webpage I linked to then you will find the other answers from the equation systems
a9(mod107)a=48(mod103)a9(mod107)a=55(mod103)a9(mod107)a=48(mod103)a9(mod107)a=55(mod103)\begin{array}{lll} a\equiv 9 \pmod{107}&\wedge \quad a= 48 \pmod{103}\\ a\equiv 9 \pmod{107}&\wedge \quad a= 55 \pmod{103}\\ a\equiv -9 \pmod{107}&\wedge \quad a= 48 \pmod{103}\\ a\equiv -9 \pmod{107}&\wedge \quad a= 55 \pmod{103}\\ \end{array}
 
That is very interesting because I did long calculations and got a different answer!

I have used the Chinese remainder theorem and I got at the end:

x2=227170\displaystyle x^2 = 227170 which means

x2227170 ( mod 11021)6750 ( mod 11021)\displaystyle x^2 \equiv 227170 \ ( \ \text{mod} \ 11021) \equiv 6750 \ ( \ \text{mod} \ 11021)

So, 6750\displaystyle 6750 is the least nonnegative residue of x2\displaystyle x^2

I might share my method someday after fully analyzing it and making sure I did not miss anything.
 
That is very interesting because I did long calculations and got a different answer!

I have used the Chinese remainder theorem and I got at the end:

x2=227170\displaystyle x^2 = 227170 which means

x2227170 ( mod 11021)6750 ( mod 11021)\displaystyle x^2 \equiv 227170 \ ( \ \text{mod} \ 11021) \equiv 6750 \ ( \ \text{mod} \ 11021)

So, 6750\displaystyle 6750 is the least nonnegative residue of x2\displaystyle x^2

I might share my method someday after fully analyzing it and making sure I did not miss anything.

67506750 is a solution, yes, as is 17032=29002091686(mod11021) 1703^2=2900209\equiv 1686 \pmod{11021} and 1703<6750. 1703<6750. The other two solutions are 4271 4271 and 9318. 9318.
 
67506750 is a solution, yes, as is 17032=29002091686(mod11021) 1703^2=2900209\equiv 1686 \pmod{11021} and 1703<6750. 1703<6750. The other two solutions are 4271 4271 and 9318. 9318.
It seems that your method is the way to find the least solution while my method only finds a solution. It is very interesting that you knew your solution was the least and I will indeed study it deeply. Thanks a lot for the share professor.

Am I correct when I assume that this problem has infinite solutions and we have just found 4\displaystyle 4 of them? And the main idea of this exercise is to find only 1703\displaystyle 1703?
 
It seems that your method is the way to find the least solution while my method only finds a solution. It is very interesting that you knew your solution was the least and I will indeed study it deeply. Thanks a lot for the share professor.

Am I correct when I assume that this problem has infinite solutions and we have just found 4\displaystyle 4 of them? And the main idea of this exercise is to find only 1703\displaystyle 1703?
Yes, I think so. If xa(modN) x\equiv a\pmod{N} then all numbers x=qN+a x=q\cdot N +a for all qZ q\in \mathbb{Z} are solutions, so there are always infinitely many of them for modulo equations.
 
Top