当前位置:网站首页>Second remaining learning notes

Second remaining learning notes

2022-06-11 07:29:00 Master. Yi

level Time Co., LTD. , Only consider p p p Is an odd prime number .
x 2 ≡ n ( m o d p ) x^2\equiv n\pmod p x2n(modp)

On secondary surplus
The proof in the link is very good .
determine n ∈ [ 1 , p − 1 ] n\in[1,p-1] n[1,p1] Is it a quadratic residual method : If it doesn't exist x 2 ≡ n ( m o d p ) x^2\equiv n\pmod p x2n(modp), be n p − 1 2 ≡ − 1 n^{\frac {p-1}2}\equiv -1 n2p11; If there is , be n p − 1 2 ≡ ( n ) p − 1 ≡ 1 n^{\frac {p-1}2}\equiv (\sqrt n)^{p-1}\equiv1 n2p1(n)p11

x ∈ [ 1 , p − 1 2 ] x\in[1,\frac {p-1}2] x[1,2p1] The square module of each number of p p p Different from each other , x x x And p − x p-x px The square module of p p p identical .

yyb!
Add why Find with primitive root x 2 ≡ n ( m o d p ) x^2\equiv n\pmod p x2n(modp) Of x x x when , Make g a ≡ n g^a\equiv n gan, If there is a solution , that a a a It must be an even number :
First there is ( g b ) 2 ≡ g 2 b ≡ g a (g^b)^2\equiv g^{2b}\equiv g^a (gb)2g2bga, Then there must be 2 b ≡ a ( m o d p − 1 ) 2b\equiv a\pmod {p-1} 2ba(modp1), therefore a a a It must be an even number . It can also be seen that b b b There are two solutions , One is a 2 \frac a2 2a, One is a + p − 1 2 \frac {a+p-1}2 2a+p1

solution : Random a ∈ [ 0 , p ) a\in[0,p) a[0,p), Make w = a 2 − n w=a^2-n w=a2n, If w w w There is no secondary residue , be ( a + w ) p + 1 2 (a+\sqrt w)^{\frac {p+1}2} (a+w)2p+1 It's a set of solutions , You can put w \sqrt w w Overloaded as imaginary units .

Several important conclusions ( Not in the sense of modulo odd prime numbers 0 term ):
Second surplus * Second surplus = Second surplus
Second surplus * Non quadratic residue = Non quadratic residue
Non quadratic residue * Non quadratic residue = Non quadratic residue

The proof can be obtained by multiplying according to Legendre sign .

So there is a corollary : x ∗ k − 1 x*k^{-1} xk1 It's the second surplus Equivalent to x ∗ k x*k xk It's the second surplus .

原网站

版权声明
本文为[Master. Yi]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203020520543099.html