Inputs: p, an odd prime. n, an integer which is a quadratic residue (m dịch - Inputs: p, an odd prime. n, an integer which is a quadratic residue (m Việt làm thế nào để nói

Inputs: p, an odd prime. n, an inte

Inputs: p, an odd prime. n, an integer which is a quadratic residue (mod p), meaning that the Legendre symbol igl( frac{n}{p}igr)=1.

Outputs: R, an integer satisfying R^2 equiv n.

Factor out powers of 2 from p − 1, defining Q and S as: p-1 = Q2^S with Q odd. Note that if S = 1, i.e. p equiv 3 pmod 4, then solutions are given directly by R equiv pm n^{frac{p+1}{4}}.
Select a z such that the Legendre symbol igl( frac{z}{p}igr)=-1 (that is, z should be a quadratic non-residue modulo p), and set c equiv z^Q.
Let R equiv n^{frac{Q+1}{2}}, tequiv n^Q, M = S.
Loop:
If t equiv 1, return R.
Otherwise, find the lowest i, 0 < i < M, such that t^{2^i} equiv 1; e.g. via repeated squaring.
Let b equiv c^{2^{M-i-1}}, and set R equiv Rb, ; t equiv tb^2, c equiv b^2 and M =; i.
Once you have solved the congruence with R the second solution is p − R.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Inputs: p, an odd prime. n, an integer which is a quadratic residue (mod p), meaning that the Legendre symbol igl( frac{n}{p}igr)=1.Outputs: R, an integer satisfying R^2 equiv n.Factor out powers of 2 from p − 1, defining Q and S as: p-1 = Q2^S with Q odd. Note that if S = 1, i.e. p equiv 3 pmod 4, then solutions are given directly by R equiv pm n^{frac{p+1}{4}}.Select a z such that the Legendre symbol igl( frac{z}{p}igr)=-1 (that is, z should be a quadratic non-residue modulo p), and set c equiv z^Q.Let R equiv n^{frac{Q+1}{2}}, tequiv n^Q, M = S.Loop:If t equiv 1, return R.Otherwise, find the lowest i, 0 < i < M, such that t^{2^i} equiv 1; e.g. via repeated squaring.Let b equiv c^{2^{M-i-1}}, and set R equiv Rb, ; t equiv tb^2, c equiv b^2 and M =; i.Once you have solved the congruence with R the second solution is p − R.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Đầu vào: p, một thủ lẻ. n, một số nguyên đó là một dư bậc hai (mod p), có nghĩa là các Legendre biểu tượng bigl ( tfrac {n} {p} bigr) = 1. Đầu ra: R, một số nguyên thỏa mãn R ^ 2 equiv n. yếu tố ra quyền hạn của 2 từ p - 1, rõ nét Q và S là: p-1 = Q2 ^ S với Q lẻ. Lưu ý rằng nếu S = 1, tức là p equiv 3 pmod 4, sau đó giải pháp được cung cấp trực tiếp bởi R equiv pm n ^ { frac {p + 1} {4}}. Chọn az như vậy mà các biểu tượng Legendre bigl ( tfrac {z} {p} bigr) = -. 1 (có nghĩa là, z phải là một bậc phi dư modulo p), và thiết lập c equiv z ^ Q Hãy R equiv n ^ { frac {Q + 1} {2}}, t equiv n ^ Q, M = S. Loop: Nếu t equiv 1, trở R. Nếu không, tìm i thấp nhất, 0 <i <M, như vậy mà t ^ { 2 ^ i} equiv 1; ví dụ như thông qua lặp đi lặp lại bình phương. Hãy để b equiv c ^ {2 ^ {Mi-1}}, và thiết lập R equiv Rb, ; t equiv tb ^ 2, c equiv b ^ 2 và M = ; . i Một khi bạn đã giải quyết được Tương ứng với R giải pháp thứ hai là p - R.










đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: