# दो वर्गों के योग पर फर्मा की प्रमेय

**दो वर्गों के योग पर फर्मा की प्रमेय** के अनुसार, किसी विषम अभाज्य संख्या को दो पूर्ण वर्गों के योग के रूप में तभी और केवल तभी लिखा जा सकता है जब वह मापांक 4 के सापेक्ष 1 के सर्वांगसम हो; अभाज्य संख्या 2 = 1² + 1² भी ऐसा ही योग है, जबकि मापांक 4 के सापेक्ष 3 के सर्वांगसम कोई भी अभाज्य संख्या ऐसा योग नहीं है।<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup><sup> • </sup><sup>[2](https://leanprover.github.io/logic_and_proof_lean3/elementary_number_theory.html)</sup> उदाहरण के लिए, 5 = 1² + 2² और 97 = 4² + 9² हैं; दोनों 4n + 1 के रूप की अभाज्य संख्याएँ हैं, जबकि 3, 7, 11 और 19 दो वर्गों के योग नहीं हैं।<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> 4k + 1 के रूप की किसी अभाज्य संख्या के लिए, दोनों योज्यों का क्रम बदलने के अलावा यह निरूपण अद्वितीय है।<sup>[3](https://proofwiki.org/wiki/Fermat%27s_Two_Squares_Theorem)</sup>

| मुख्य तथ्य | विवरण |
|---|---|
| कथन | कोई विषम अभाज्य संख्या p दो वर्गों का योग तभी और केवल तभी है जब p ≡ 1 (mod 4); p = 2 = 1² + 1² भी इस शर्त को पूरा करता है<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> |
| अद्वितीयता | 4k + 1 के रूप की अभाज्य संख्या के लिए, x और y का क्रम बदलने के अलावा व्यंजक p = x² + y² अद्वितीय है<sup>[3](https://proofwiki.org/wiki/Fermat%27s_Two_Squares_Theorem)</sup> |
| पहला कथन | अल्बर्ट जिरार ने 1632 में बिना प्रमाण के इसे कहा; फर्मा ने 1654 में पास्कल को लिखे एक पत्र में प्रमाण होने का दावा किया, जिसका कोई अभिलेख शेष नहीं है<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup> |
| पहला प्रमाण | ऑयलर का पूरा प्रमाण पहली बार 12 अप्रैल 1749 को गोल्डबाख को लिखे एक पत्र में सामने आया; इसमें अवरोह विधि का प्रयोग किया गया था<sup>[5](https://arxiv.org/abs/1404.0187)</sup> |
| सामान्य पूर्णांक | कोई धनात्मक पूर्णांक दो वर्गों का योग तभी और केवल तभी है जब उसका प्रत्येक अभाज्य गुणनखंड q ≡ 3 (mod 4) सम घात में आता हो<sup>[5](https://arxiv.org/abs/1404.0187)</sup> |
| प्रसिद्ध आधुनिक प्रमाण | डॉन जागिए का एक-वाक्यीय प्रमाण, अमेरिकन मैथमैटिकल मंथली 97(2) (1990), पृ. 144, हीथ-ब्राउन के 1984 के प्रमाण का संक्षिप्त रूप है<sup>[6](https://arxiv.org/abs/2112.02556)</sup> |

## मापांक 4 के सापेक्ष 3 के सर्वांगसम अभाज्य संख्याएँ क्यों नहीं लिखी जा सकतीं

बाधा मापांक 4 के सापेक्ष स्पष्ट दिखाई देती है। किसी सम संख्या का वर्ग (2k)² = 4k², मापांक 4 के सापेक्ष 0 के सर्वांगसम होता है और किसी विषम संख्या का वर्ग (2k + 1)² = 4(k² + k) + 1, 1 के सर्वांगसम होता है। इसलिए दो वर्गों का योग मापांक 4 के सापेक्ष केवल 0, 1 या 2 के सर्वांगसम हो सकता है, कभी 3 के नहीं।<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup> इससे एक ही बार में हर संख्या n ≡ 3 (mod 4) बाहर हो जाती है, चाहे वह अभाज्य हो या नहीं।<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup>

एक अधिक सूक्ष्म तर्क में फर्मा की लघु प्रमेय का प्रयोग होता है। यदि किसी अभाज्य p ≡ 3 (mod 4) के लिए x² ≡ −1 (mod p) का कोई हल होता, तो दोनों पक्षों को घात (p − 1)/2 तक उठाने पर x^(p−1) ≡ (−1)^((p−1)/2) ≡ −1 (mod p) मिलता। यह फर्मा की लघु प्रमेय के विरुद्ध है, जिसके अनुसार x^(p−1) ≡ 1 (mod p) होना चाहिए।<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> अतः −1 मापांक p के सापेक्ष एक वर्ग ठीक तभी है जब p = 2 या p ≡ 1 (mod 4), और यह शर्त p के दो वर्गों का योग होने के तुल्य है।<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup>

## विलोम कथन और उसका प्रमाण

कठिन दिशा अस्तित्व की है: प्रत्येक अभाज्य p = 4m + 1 वास्तव में किन्हीं प्राकृतिक संख्याओं x और y के लिए x² + y² के बराबर होता है।<sup>[7](https://firsching.ch/FormalBook/blueprint/sect0004.html)</sup> एक प्रारंभिक प्रमाण, जिसे थ्यू का जालक तर्क कहते हैं, {0, 1, …, ⌊√p⌋}² में पूर्णांकों के (⌊√p⌋ + 1)² युग्मों पर विचार करता है। इनकी संख्या p से अधिक है, इसलिए किसी निश्चित s के लिए, जहाँ s² ≡ −1 (mod p), दो भिन्न युग्मों के x′ − sy′ के मान मापांक p के सापेक्ष समान होंगे। उनके अंतर लेने पर ऐसे x, y मिलते हैं जिनके लिए 0 < x² + y² < 2p और x² + y² ≡ 0 (mod p) है; फलतः x² + y² = p होना ही चाहिए।<sup>[7](https://firsching.ch/FormalBook/blueprint/sect0004.html)</sup>

**जागिए का प्रतिवलन प्रमाण।** सबसे प्रसिद्ध संक्षिप्त प्रमाण परिमित समुच्चय S = {(x, y, z) ∈ ℤ³ : x² + 4yz = p, x > 0, y > 0, z > 0} पर विचार करता है और उस पर दो प्रतिवलन परिभाषित करता है।<sup>[19](https://www.math.gordon.edu/ntic/ntic2021/section-one-sentence.html)</sup> एक प्रतिवलन स्पष्ट है; दूसरे का ठीक एक स्थिर बिंदु है, इसलिए समुच्चय की गणन संख्या विषम है। इससे पहले प्रतिवलन का भी एक स्थिर बिंदु होना अनिवार्य हो जाता है, और उस स्थिर बिंदु से p = x² + y² मिलता है।<sup>[6](https://arxiv.org/abs/2112.02556)</sup><sup> • </sup><sup>[7](https://firsching.ch/FormalBook/blueprint/sect0004.html)</sup> जागिए का 1990 का एक-वाक्यीय संस्करण रोजर हीथ-ब्राउन के 1984 के प्रमाण का संक्षिप्त रूप था; हीथ-ब्राउन ने जोज़ेफ लिउविल से जुड़े कार्य का सहारा लिया था। वर्णित रूप में यह प्रमाण अरचनात्मक है, किंतु बाद में इसके एक रचनात्मक रूप को HOL4 प्रमेय सिद्धकर्ता में औपचारिक रूप दिया गया, जिससे दोनों वर्ग निकालने की एक कलनविधि प्राप्त होती है।<sup>[6](https://arxiv.org/abs/2112.02556)</sup>

**फर्मा की अपनी विधि।** ऑयलर के पूरे प्रमाण में, जो पहली बार 12 अप्रैल 1749 को गोल्डबाख को लिखे उनके पत्र में दिया गया था, अवरोह विधि का प्रयोग हुआ। फर्मा ने यह तकनीक कुछ डायोफैंटीय समीकरणों के हलों का अस्तित्व न होना दिखाने के लिए प्रस्तुत की थी: किसी भी निरूपण से एक छोटा निरूपण निकाला जाता है, जो धनात्मक पूर्णांकों में असंभव है।<sup>[5](https://arxiv.org/abs/1404.0187)</sup> ऑयलर के लिखित प्रमाण के प्रकाशन की तिथि पर स्रोतों में मतभेद है: लिब्रेटेक्स्ट्स की संख्या सिद्धांत की पुस्तक कहती है कि ऑयलर ने प्रमाण 1758 में प्रकाशित किया,<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup> जबकि प्रमेय के इतिहास का एक सर्वेक्षण कहता है कि उन्होंने इसकी घोषणा 1749 में की और इसे 1760 में प्रकाशित किया।<sup>[8](https://cpoli.github.io/mathematicskit/history/number_theory_breakthroughs.html)</sup>

## गाउसी पूर्णांकों का दृष्टिकोण

आधुनिक संरचनात्मक व्याख्या गाउसी पूर्णांकों के वलय ℤ[i] = {a + bi : a, b ∈ ℤ} में काम करती है, जिसे कार्ल फ्रेडरिक गाउस ने 1832 में द्विचतुष्घाती व्युत्क्रमता का अध्ययन करते हुए प्रस्तुत किया था।<sup>[9](https://stephenratliff.github.io/learn/gaussian-integers.html)</sup> नॉर्म N(a + bi) = a² + b² गुणनात्मक है, इसलिए यह पूछना कि कोई अभाज्य संख्या p दो वर्गों का योग है या नहीं, दरअसल यह पूछना है कि क्या ℤ[i] में p का गुणनखंडन (a + bi)(a − bi) के रूप में होता है।<sup>[10](https://www.matpic.com/essays/two-squares-and-a-lattice/)</sup> चूँकि ℤ[i] में अद्वितीय गुणनखंडन होता है, कोई परिमेय अभाज्य संख्या वहाँ या तो अभाज्य बनी रहती है या दो संयुग्मी गुणनखंडों में विभक्त हो जाती है; इनमें से क्या होगा, यह इस बात से तय होता है कि −1 मापांक p के सापेक्ष एक वर्ग है या नहीं।<sup>[10](https://www.matpic.com/essays/two-squares-and-a-lattice/)</sup> अभाज्य संख्याएँ p ≡ 3 (mod 4), ℤ[i] में अभाज्य बनी रहती हैं; अभाज्य संख्याएँ p ≡ 1 (mod 4) विभक्त हो जाती हैं, और प्रत्येक विभाजन से निरूपण p = N(a + bi) = a² + b² मिलता है।<sup>[11](https://crypto.stanford.edu/pbc/notes/numberfield/sumsquares.html)</sup>

नॉर्म की गुणनात्मकता से यह स्पष्ट होता है कि वर्गों के योगों का गुणनफल भी वर्गों का योग क्यों होता है; यह सर्वसमिका (a² + b²)(c² + d²) = (ad − bc)² + (ac + bd)² से दिखाई देता है।<sup>[11](https://crypto.stanford.edu/pbc/notes/numberfield/sumsquares.html)</sup> इससे यह भी समझ में आता है कि भाज्य संख्याओं के अनेक निरूपण कैसे मिलते हैं: 485 = 5 · 97 को 14² + 17² या 22² + 1² के रूप में लिखा जा सकता है, जो प्रत्येक संयुग्मी युग्म से एक गुणनखंड चुनने के दो तरीकों के अनुरूप हैं।<sup>[1](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)</sup> इसी तरह, 1010 = 2 · 5 · 101 = (1+i)(1−i)(2+i)(2−i)(10+i)(10−i) के ठीक दो मूलतः भिन्न निरूपण हैं, जिनमें एक 7² + 31² है, यदि केवल क्रम या चिह्नों में भिन्न निरूपणों को एक ही माना जाए।<sup>[12](https://web.math.utk.edu/~dcartwr1/iaawa/domains-5.html)</sup>

## सभी पूर्णांकों के लिए, केवल अभाज्य संख्याओं के लिए नहीं

अभाज्य संख्याओं वाले परिणाम को बढ़ाकर एक पूर्ण अभिलक्षण प्राप्त होता है: कोई धनात्मक पूर्णांक z दो वर्गों का योग तभी और केवल तभी है जब z का प्रत्येक अभाज्य गुणनखंड q, जिसके लिए q ≡ 3 (mod 4) है, z के अभाज्य गुणनखंडन में सम घात में आता हो।<sup>[5](https://arxiv.org/abs/1404.0187)</sup> इसके तुल्य, कोई धनात्मक पूर्णांक दो वर्गों का योग ठीक तभी है जब वह a²b के रूप का हो, जहाँ b वर्गमुक्त हो और उसका कोई भी अभाज्य गुणनखंड मापांक 4 के सापेक्ष 3 के सर्वांगसम न हो।<sup>[11](https://crypto.stanford.edu/pbc/notes/numberfield/sumsquares.html)</sup> किसी भी अभाज्य संख्या की सम घातें स्वतः दो वर्गों का योग हैं, क्योंकि p^(2n) = (p^n)² + 0²।<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup> किसी धनात्मक पूर्णांक को दो वर्गों के योग के रूप में तभी और केवल तभी व्यक्त किया जा सकता है जब मापांक 4 के सापेक्ष 3 के सर्वांगसम प्रत्येक अभाज्य संख्या उसके अभाज्य गुणनखंडन में सम घात में आती हो; इसलिए 2^m(4n + 1) के रूप की संख्या आवश्यक नहीं कि ऐसा योग हो।<sup>[13](https://www.maths.tcd.ie/pub/HistMath/People/Fermat/RouseBall/RB_Fermat.html)</sup><sup> • </sup><sup>[20](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_(Barrus_and_Clark)/01:_Chapters/1.28:_Sum_of_Squares)</sup>

यह प्रमेय −1 के वर्गमूल की शर्त से भी एक ऐसे रूप में जुड़ती है जिसे अब लीन की लाइब्रेरी मैथलिब में औपचारिक रूप दिया गया है: कोई प्राकृतिक संख्या n दो वर्गों का योग तभी और केवल तभी है जब n = a² · b हो और −1 मापांक b के सापेक्ष एक वर्ग हो; और यदि n दो सहअभाज्य पूर्णांकों के वर्गों का योग है, तो −1 मापांक n के सापेक्ष एक वर्ग है।<sup>[14](https://leanprover-community.github.io/mathlib4_docs/Mathlib/NumberTheory/SumTwoSquares.html)</sup>

## इतिहास और औपचारिकीकरण

प्रमेय के कथन का इतिहास कई परतों वाला है। अल्बर्ट जिरार ने 1632 में इसे बिना प्रमाण के कहा; फर्मा ने 1654 में पास्कल को लिखे पत्र में इसका प्रमाण होने का दावा किया, हालाँकि उसका कोई अभिलेख शेष नहीं है; और ऑयलर ने पहला प्रमाण प्रकाशित किया।<sup>[4](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)</sup> मैकट्यूटर के अभाज्य संख्याओं के इतिहास में दर्ज है कि फर्मा ने जिरार की इस परिकल्पना को सिद्ध किया कि 4n + 1 के रूप की प्रत्येक अभाज्य संख्या को दो वर्गों के योग के रूप में अद्वितीय तरीके से लिखा जा सकता है।<sup>[15](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)</sup>

यह प्रमेय संवादात्मक प्रमेय सिद्धि में एक मानक कसौटी बन गई है। मैथलिब में दो वर्गों के पूर्ण अभिलक्षण का प्रमाण है, जिसे मार्च 2024 में ल्यूमिनी में आयोजित “लीन फॉर द क्यूरियस मैथमैटिशियन” सम्मेलन के एक दल ने औपचारिक रूप दिया।<sup>[14](https://leanprover-community.github.io/mathlib4_docs/Mathlib/NumberTheory/SumTwoSquares.html)</sup><sup> • </sup><sup>[16](https://imperialcollegelondon.github.io/FLT/blueprint.pdf)</sup> मैथमैटिकल कंपोनेंट्स लाइब्रेरी में गाउसी पूर्णांकों का प्रयोग करने वाला एक कॉक प्रमाण मौजूद है, और जागिए के एक-वाक्यीय तर्क के औपचारिक प्रमाण भी कॉक में दिए गए हैं।<sup>[17](https://github.com/thery/twoSquare)</sup><sup> • </sup><sup>[18](https://arxiv.org/abs/2103.11389)</sup>

## References

1. [Number Theory III: Notes (Jack Shotton, Durham University), Theorems 3.1–3.6](https://www.maths.dur.ac.uk/users/jack.g.shotton/Teaching/number-theory/notes.html)
2. [Logic and Proof, Elementary Number Theory (Lean Prover community)](https://leanprover.github.io/logic_and_proof_lean3/elementary_number_theory.html)
3. [Fermat's Two Squares Theorem, ProofWiki](https://proofwiki.org/wiki/Fermat%27s_Two_Squares_Theorem)
4. [1.28: Sum of Squares, Elementary Number Theory (Barrus and Clark), Mathematics LibreTexts](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_%28Barrus_and_Clark%29/01%3A_Chapters/1.28%3A_Sum_of_Squares)
5. [Representing Integers as the Sum of Two Squares in the Ring ℤ_n (arXiv:1404.0187)](https://arxiv.org/abs/1404.0187)
6. [Windmills of the Minds: An Algorithm for Fermat's Two Squares Theorem (arXiv:2112.02556)](https://arxiv.org/abs/2112.02556)
7. [Representing numbers as sums of two squares, FormalBook blueprint (Firsching)](https://firsching.ch/FormalBook/blueprint/sect0004.html)
8. [Breakthroughs in Number Theory, mathematicskit documentation](https://cpoli.github.io/mathematicskit/history/number_theory_breakthroughs.html)
9. [Gaussian Integers — A Complete, Interactive Lesson](https://stephenratliff.github.io/learn/gaussian-integers.html)
10. [Two squares, and a lattice, Matpic](https://www.matpic.com/essays/two-squares-and-a-lattice/)
11. [Introduction — Sum of Two Squares, Stanford cryptography notes](https://crypto.stanford.edu/pbc/notes/numberfield/sumsquares.html)
12. [IAAWA: Factorization of Gauss integers, University of Tennessee](https://web.math.utk.edu/~dcartwr1/iaawa/domains-5.html)
13. [Pierre de Fermat (1601–1665), Rouse Ball, Trinity College Dublin](https://www.maths.tcd.ie/pub/HistMath/People/Fermat/RouseBall/RB_Fermat.html)
14. [Mathlib.NumberTheory.SumTwoSquares documentation](https://leanprover-community.github.io/mathlib4_docs/Mathlib/NumberTheory/SumTwoSquares.html)
15. [Prime numbers, MacTutor History of Mathematics](https://mathshistory.st-andrews.ac.uk/HistTopics/Prime_numbers/)
16. [Fermat's Last Theorem blueprint, Imperial College London](https://imperialcollegelondon.github.io/FLT/blueprint.pdf)
17. [thery/twoSquare: A proof of Fermat's theorem on sum of two squares with mathcomp using Gaussian integers](https://github.com/thery/twoSquare)
18. [Formal verification of Zagier's one-sentence proof (arXiv:2103.11389)](https://arxiv.org/abs/2103.11389)
19. [NTIC A One-Sentence Proof](https://www.math.gordon.edu/ntic/ntic2021/section-one-sentence.html)
20. [1.28: Sum of Squares](https://math.libretexts.org/Bookshelves/Combinatorics_and_Discrete_Mathematics/Elementary_Number_Theory_(Barrus_and_Clark)/01:_Chapters/1.28:_Sum_of_Squares)

---
*Initially written Sep 17, 2026 · Reviewed: Oct 15, 2026 · Edited: Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: भौतिक जगत और गणित › गणित और सांख्यिकी › संख्याएँ और बीजगणित › Number theory › Elementary number theory › Quadratic residues and reciprocity

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/hi/fermats-theorem-on-sums-of-two-squares

English original: https://www.edgepedia.org/fermats-theorem-on-sums-of-two-squares
