Factoring primes and sums of two squares

Research Article
Open access

Factoring primes and sums of two squares

Zirui Jiang 1*
  • 1 The University of Manchester    
  • *corresponding author ziruij@163.com
Published on 30 November 2023 | https://doi.org/10.54254/2753-8818/13/20240744
TNS Vol.13
ISSN (Print): 2753-8826
ISSN (Online): 2753-8818
ISBN (Print): 978-1-83558-189-6
ISBN (Online): 978-1-83558-190-2

Abstract

Mathematicians began to study a series of properties about numbers a long time ago, and a new field of mathematics, the number theory, was born from this. Some special properties of numbers in the number theory make mathematicians use the knowledge of group theory to make some ingenious answers when considering some problems. In the analytic number theory, equations related to numbers have always been a concern of mathematicians. The most famous Fermat's last theorem also brought long-term troubles to countless mathematicians and was finally proved by the British mathematician Wiles. Many famous theorems also prove that some problems in the number theory can be solved by thinking in relation to other algebraic knowledge. This paper focuses on the factoring primes and constructs prime ideals of lying above a prim from irreducible factors of . The paper also shows that these are all prime ideals lying above . Based on these theorems and definitions, as a simple application of the theory, this paper first considers which primes can be written as sums of two squares, then the second part of this paper gives the answer: is a sum of two squares if and only if .

Keywords:

Primes, Sums of Squares, Algebraic Number Theory, Mathematics

Jiang,Z. (2023). Factoring primes and sums of two squares. Theoretical and Natural Science,13,18-22.
Export citation

1. Introduction

For algebraic number theory [1], the overall understanding process starts with defining some basic algebraic number theory annotations, such as algebraic numbers and integers [2], number fields, rings of integers, norm and discriminant, fractional ideals, and class groups and lattices. As one of the most essential parts of algebraic number theory, factorising prime numbers into prime ideals of a ring of integers and applying it in the case of simple number fields (such as quadratic fields) is very important intermediate knowledge. Only after mastering the basic definition and such a decomposition relationship can the following Minkowski’s first theorem be introduced to try to compute class numbers and class groups of simple number fields. This paper can be divided into two parts, describing the process of decomposition of prime ideals and the corresponding applications, respectively. To be more specific, it discusses what kind of prime numbers can be written in the form of a sum of two integer squares, which is a very classical part of algebraic number theory.

The most important part of the first part is that if we give a number field, give the corresponding ring of integers and have a minimal polynomial, then we can perform in the given number field for some given prime numbers. break down. The second part gives more inspiration when we consider an algebraic decomposition problem, in addition to analyzing the properties of the number itself, we can also use the properties of groups, rings, and fields on the basis of group theory. Considering the problem, this actually inspires us to think about the problem from many aspects when facing Fermat's last theorem.

2. Factoring primes

2.1. Some basic definitions

Several concepts of algebraic number theory have a pivotal role [3]: numbers, polynomials, and equations. So this paper gives definitions of some of the core terms before discussing the central issues. First of all, for numbers that people have a lot of contact with, the more special numbers in algebraic number theory are algebraic numbers and transcendental numbers [4]. Based on this background, the following are some definitions.

Definition 2.1. A complex number/word/media/image7.wmfis called algebraic if there is a non-zero polynomials/word/media/image8.wmfwith/word/media/image9.wmf. If/word/media/image10.wmfis not algebraic, it is called transcendental.

Definition 2.2. The number field generated by an algebraic number/word/media/image11.wmfis the smallest subfield of/word/media/image12.wmfthat contains/word/media/image13.wmf. We denote this field by/word/media/image14.wmf.

A subfield/word/media/image15.wmfis an algebraic number field (or a number field) if/word/media/image16.wmffor an algebraic number/word/media/image17.wmf.

Definition 2.3. A complex number/word/media/image18.wmfis an algebraic integer if there is a monic polynomial/word/media/image19.wmfwith/word/media/image20.wmf.

Definition 2.4. Let/word/media/image21.wmfbe a number field. The ring/word/media/image22.wmfconsisting of all algebraic integers in/word/media/image23.wmfis called the ring of integers of/word/media/image24.wmf, where the set/word/media/image25.wmfof algebraic integers is a subring of/word/media/image26.wmf.

2.2. Prime ideals

Lemma 2.5. Let/word/media/image27.wmfbe a number field and/word/media/image28.wmfa non-zero prime ideal [5]. Then/word/media/image29.wmfis a non-zero prime ideal of/word/media/image30.wmf, so/word/media/image31.wmf, for a prime/word/media/image32.wmf.

Proof. If/word/media/image33.wmf,/word/media/image34.wmf, then/word/media/image35.wmf,/word/media/image36.wmf, then/word/media/image37.wmfis an ideal of/word/media/image38.wmf. If we have/word/media/image39.wmfsuch that/word/media/image40.wmf, since/word/media/image41.wmfis a prime ideal, then/word/media/image42.wmfor/word/media/image43.wmf. Since/word/media/image44.wmf, we can get/word/media/image45.wmfor/word/media/image46.wmf, thus/word/media/image47.wmfis a prime ideal of/word/media/image48.wmf. Let/word/media/image49.wmf,/word/media/image50.wmf. We konw that/word/media/image51.wmf, and/word/media/image52.wmf. Hence,/word/media/image53.wmf. As a non-zero prime ideal of/word/media/image54.wmf, it must have the form/word/media/image55.wmffor a prime/word/media/image56.wmf.

Definition 2.6. Let/word/media/image57.wmfbe a prime. The prime ideals/word/media/image58.wmfappearing in the prime ideal factorization/word/media/image59.wmfof/word/media/image60.wmfare said to be lying above/word/media/image61.wmf[6].

Lemma 2.7. Let/word/media/image62.wmfbe a prime,/word/media/image63.wmfa prime ideal of/word/media/image64.wmf. Then/word/media/image65.wmflies above/word/media/image66.wmfif and only if/word/media/image67.wmf.

Proof. If/word/media/image68.wmflies above/word/media/image69.wmf, it appears in the prime ideal factorisation of /word/media/image70.wmf. Thus, /word/media/image71.wmf. Then,/word/media/image72.wmf. Since/word/media/image73.wmfis a prime ideal/word/media/image74.wmfby Lemma 2.5, with/word/media/image75.wmfis a prime, then it can get /word/media/image76.wmf, thus/word/media/image77.wmf.

If/word/media/image78.wmf, then/word/media/image79.wmf, thus/word/media/image80.wmf, by the properties of ideals of/word/media/image81.wmf: "To contain is to divide", thus/word/media/image82.wmf. Therefore, if/word/media/image83.wmfis the prime ideal factorisation of/word/media/image84.wmf, we must have/word/media/image85.wmffor some/word/media/image86.wmf.

Theorem 2.8. Let/word/media/image87.wmfbe a number field and assume that/word/media/image88.wmf, for some/word/media/image89.wmf. Let/word/media/image90.wmfbe prime and/word/media/image91.wmfa monic polynomial, such that/word/media/image92.wmfis irreducible over/word/media/image93.wmfand divides/word/media/image94.wmfwhere/word/media/image95.wmfis the minimal polynomial. Then the ideal/word/media/image96.wmfis a prime ideal of/word/media/image97.wmf. Moreover,/word/media/image98.wmflies above/word/media/image99.wmfand/word/media/image100.wmf.

Proof. We consider the residue class field/word/media/image101.wmf. Recall that/word/media/image102.wmf. A function/word/media/image103.wmfis defined by setting/word/media/image104.wmf. If/word/media/image105.wmf, then/word/media/image95.wmfdivides/word/media/image106.wmf, thus/word/media/image107.wmfwhere/word/media/image108.wmf. By Gauss Lemma, it is found that/word/media/image109.wmf, such that/word/media/image110.wmf. Since/word/media/image111.wmfis monic, then/word/media/image112.wmf. However,/word/media/image113.wmfimplies that/word/media/image114.wmf. Thus/word/media/image115.wmfwhere/word/media/image116.wmf. Since/word/media/image117.wmf, then/word/media/image118.wmf, thus/word/media/image119.wmfand/word/media/image120.wmfis well defined. It is clearly a ring homomorphism and subjective. Consider the ideal/word/media/image121.wmfof/word/media/image122.wmf. By the First Isomorphism Theorem,/word/media/image123.wmf is an isomorphism, then /word/media/image124.wmf is a field with/word/media/image125.wmfelements. Therefore,/word/media/image126.wmfis a maximal ideal of/word/media/image127.wmfand a prime ideal with/word/media/image128.wmf.

We just need to show that/word/media/image129.wmf. First, since/word/media/image130.wmf, we have/word/media/image131.wmf. Moreover,/word/media/image132.wmf, as/word/media/image133.wmf. Thus/word/media/image134.wmf. Conversely, let/word/media/image135.wmf. Then/word/media/image136.wmf, so/word/media/image137.wmf, for some/word/media/image138.wmf. Then the polynomials/word/media/image139.wmfand/word/media/image140.wmf/word/media/image141.wmfare congruent modulo/word/media/image142.wmf, so all coefficients of/word/media/image143.wmfare divisible by/word/media/image144.wmf. Hence, there is a polynomial/word/media/image145.wmf, such that/word/media/image146.wmf. Plugging in/word/media/image147.wmf,/word/media/image148.wmfis obtained. Thus/word/media/image149.wmf. Since/word/media/image150.wmf, we have/word/media/image151.wmf. By Lemma 2.5,/word/media/image152.wmfis a prime ideal of/word/media/image153.wmfthat contains/word/media/image154.wmf, thus/word/media/image155.wmf. By Lemma 2.7, it shows that/word/media/image156.wmflies above/word/media/image157.wmf.

2.3. Factoring prime

Theorem 2.9. Let/word/media/image158.wmfbe a number field and assume that/word/media/image159.wmffor some/word/media/image160.wmf. Let/word/media/image161.wmf be prime and/word/media/image162.wmfbe the factorization of/word/media/image163.wmf[7] into irreducibles. That is,/word/media/image164.wmfare monic polynomials, such that the/word/media/image165.wmfare distinct and irreducible in/word/media/image166.wmf, and/word/media/image167.wmf. Then the prime ideals of/word/media/image168.wmflying above/word/media/image169.wmfare precisely the ideals/word/media/image170.wmf, for/word/media/image171.wmf. The ideal/word/media/image172.wmfof/word/media/image173.wmffactorises into prime ideals as/word/media/image174.wmf

Proof. It is known from Theorem 2.8 that all/word/media/image175.wmfare prime ideals with/word/media/image176.wmf, where/word/media/image177.wmf. From the factorization/word/media/image178.wmf, it can get/word/media/image179.wmfsince all/word/media/image180.wmfare monic,/word/media/image181.wmf. For arbitrary ideals/word/media/image182.wmfof/word/media/image183.wmf, Equation (1) is obtained:

/word/media/image184.wmf(1)

Applying this inductively to the/word/media/image185.wmf, Equation (2) is obtained:

/word/media/image186.wmf(2)

The last equality holds due to/word/media/image187.wmf, as then/word/media/image188.wmfdivides all coefficients of/word/media/image189.wmf, so/word/media/image190.wmf, for some/word/media/image191.wmf. But then/word/media/image192.wmf.

Thus,/word/media/image193.wmfis obtained and hence/word/media/image194.wmfwith/word/media/image195.wmf. Hence, the/word/media/image196.wmfis indeed the only prime ideals of/word/media/image197.wmflying above/word/media/image198.wmf. Moreover, Equation (3) is obtained:

/word/media/image199.wmf(3)

Compare this to/word/media/image200.wmfto conclude that/word/media/image201.wmffor all/word/media/image202.wmf.

3. Primes as sums of two squares

Lemma 3.1. Let/word/media/image203.wmfbe an odd prime, such that/word/media/image204.wmf, with/word/media/image205.wmf. Then /word/media/image206.wmf.

Proof. Since/word/media/image207.wmf, /word/media/image208.wmf, /word/media/image209.wmfand/word/media/image210.wmf, we found that squares are always congruent to/word/media/image211.wmfor/word/media/image212.wmfmodulo/word/media/image213.wmf. If/word/media/image214.wmfis a sum of two squares, then/word/media/image215.wmf,/word/media/image216.wmf,/word/media/image217.wmf mod/word/media/image218.wmf. Then/word/media/image219.wmfis impossible and the only prime congruent to/word/media/image220.wmfmodulo/word/media/image221.wmfis/word/media/image222.wmf.

The less trivial reverse direction will be proved, showing that every prime/word/media/image223.wmfcan be written as/word/media/image224.wmf, with/word/media/image225.wmf. This will be done by factoring the ideal/word/media/image226.wmfin the ring of integers/word/media/image227.wmfof/word/media/image228.wmf. The factorisation depends on the roots of/word/media/image229.wmfin/word/media/image230.wmf.

Lemma 3.2. Let/word/media/image231.wmfbe a prime. Then/word/media/image232.wmfis a square modulo/word/media/image233.wmf, i.e., there is/word/media/image234.wmf with/word/media/image235.wmf.

Proof. Let/word/media/image236.wmfbe a generator of/word/media/image237.wmf, then/word/media/image238.wmfand write/word/media/image239.wmf. By Fermat's Little Theorem, then/word/media/image240.wmf. The polynomial/word/media/image241.wmfhas only two roots /word/media/image242.wmf. Thus/word/media/image243.wmf. If/word/media/image244.wmf, so/word/media/image245.wmfcan not generate all of/word/media/image246.wmf, as then /word/media/image247.wmf, so the powers/word/media/image248.wmf, for/word/media/image249.wmfcapture only/word/media/image250.wmf elements of/word/media/image251.wmf. Hence,/word/media/image252.wmfand thus,/word/media/image253.wmfis a square modulo/word/media/image254.wmf.

Theorem 3.3. Let/word/media/image255.wmfbe an odd prime. Then/word/media/image5.wmfis a sum of two squares if and only if /word/media/image6.wmf[8,9].

Proof. From Lemma 3.1, it is known that the "only if" part has been proved, so let us prove the "if" part. Let/word/media/image256.wmf, then/word/media/image257.wmf. Consider the factorisation of the ideal/word/media/image258.wmfand note that/word/media/image259.wmf. By Lemma 3.2, there is/word/media/image260.wmf, such that/word/media/image261.wmf. Thus Equation (4) is obtained:

/word/media/image262.wmf(4)

If/word/media/image263.wmf, then/word/media/image264.wmf. Since/word/media/image265.wmf, so there is only one possible value: /word/media/image266.wmf, but that is impossible because/word/media/image267.wmf, thus/word/media/image268.wmf, so these are two distinct roots. Hence,/word/media/image269.wmfis split in/word/media/image270.wmfand/word/media/image271.wmf, for two distinct prime ideals/word/media/image272.wmfwith/word/media/image273.wmf. Since every ideal of/word/media/image274.wmfis principle. Hence,/word/media/image275.wmf, for some /word/media/image276.wmf. Since/word/media/image277.wmf and/word/media/image278.wmf, then Equation (5) is obtained:

/word/media/image279.wmf(5)

4. Conclusion

This paper describes the process of decomposition of prime ideals and the corresponding applications: i.e., it discusses what kind of prime numbers can be written in the form of a sum of two integer squares and we got the result that for odd prime/word/media/image5.wmf, it is a sum of two squares if and only if /word/media/image6.wmf,this part is a very classical part of algebraic number theory, on the basis of which if Minkowski bound and class groups, etc. are introduced, the property of the unique factorization domain (UFD) can be used to solve some problems about the Diophantine equations [10]. For instance, it can be shown that there are no /word/media/image280.wmf with /word/media/image281.wmf, which in the long run will be useful for the proof of Fermat's Last Theorem.

In the proof of the theorem, we use the fact that every ideal in/word/media/image227.wmfis principle, we did not present the proof of this result in the article due to space constraints. Also, Theorem 2.9 can be applied to many number fields, but not all of them, that is because the assumption /word/media/image159.wmf, for some algebraic integer/word/media/image147.wmf. But for many number fields, such an/word/media/image147.wmfdoes not exist, we just found such/word/media/image147.wmffor quadratic and cyclotomic fields. Therefore, the results given in this article actually have certain limitations. On the basis of this problem, we can gradually try to use the idea of decomposition to consider proof of the special case of the Fermat’s last theorem for regular primes.


References

[1]. Bhaskar, J. (2008). Sum of two squares. https://www.math.uchicago.edu/~may/VIGRE/ VIGRE2008/REUPapers/Bhaskar.pdf.

[2]. Homeworkhelp. Com and Inc. Factoring and Primes (High School Math).

[3]. Stewart, I. and Tall, D. (2001). Algebraic Number Theory and Fermat's Last Theorem: Third Edition. A K Peters/CRC Press. ISBN-10: 1568811195. ISBN-13: 978-1568811192.

[4]. Edwards, H. M. (1977). Fermat's last theorem: A genetic introduction to algebraic number theory. In: Graduate Texts in Mathematics. Springer New York, NY.

[5]. Stein, M. R. and Dennis, R. K. (1989). Algebraic K-Theory and Algebraic Number Theory: Comtemporar Math., 83. American Mathematical Society, Providence.

[6]. Rosen, K. H. (2000). Elementary number theory and its applications. Addison Wesley. ISBN-10: 0201870738. ISBN-13: 978-0201870732.

[7]. Zagier, D. (1990). A One-Sentence Proof That Every Prime p Is a Sum of Two Squares. In: American Mathematical Monthly 97(2), 144.

[8]. Honsberger, R. (1970). Writing a Number as a Sum of Two Squares. In Ingenuity In Mathematics (Anneli Lax New Mathematical Library, pp. 61-66). Mathematical Association of America. doi:10.5948/UPO9780883859384.012.

[9]. Vladimirovich, D. V. and Genadievna, S. A. (2017). A generalization of fermat’s theorem on sum of two squares. Austrian Journal of Technical and Natural Sciences.

[10]. Ore, O. (1988). Number theory and its history (Dover Books on Mathematics). Dover Publications. ISBN-10: 0486656209. ISBN-13: 978-0486656205.


Cite this article

Jiang,Z. (2023). Factoring primes and sums of two squares. Theoretical and Natural Science,13,18-22.

Data availability

The datasets used and/or analyzed during the current study will be available from the authors upon reasonable request.

Disclaimer/Publisher's Note

The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of EWA Publishing and/or the editor(s). EWA Publishing and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

About volume

Volume title: Proceedings of the 3rd International Conference on Computing Innovation and Applied Physics

ISBN:978-1-83558-189-6(Print) / 978-1-83558-190-2(Online)
Editor:Yazeed Ghadi
Conference website: https://www.confciap.org/
Conference date: 27 January 2024
Series: Theoretical and Natural Science
Volume number: Vol.13
ISSN:2753-8818(Print) / 2753-8826(Online)

© 2024 by the author(s). Licensee EWA Publishing, Oxford, UK. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license. Authors who publish this series agree to the following terms:
1. Authors retain copyright and grant the series right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgment of the work's authorship and initial publication in this series.
2. Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the series's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgment of its initial publication in this series.
3. Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See Open access policy for details).

References

[1]. Bhaskar, J. (2008). Sum of two squares. https://www.math.uchicago.edu/~may/VIGRE/ VIGRE2008/REUPapers/Bhaskar.pdf.

[2]. Homeworkhelp. Com and Inc. Factoring and Primes (High School Math).

[3]. Stewart, I. and Tall, D. (2001). Algebraic Number Theory and Fermat's Last Theorem: Third Edition. A K Peters/CRC Press. ISBN-10: 1568811195. ISBN-13: 978-1568811192.

[4]. Edwards, H. M. (1977). Fermat's last theorem: A genetic introduction to algebraic number theory. In: Graduate Texts in Mathematics. Springer New York, NY.

[5]. Stein, M. R. and Dennis, R. K. (1989). Algebraic K-Theory and Algebraic Number Theory: Comtemporar Math., 83. American Mathematical Society, Providence.

[6]. Rosen, K. H. (2000). Elementary number theory and its applications. Addison Wesley. ISBN-10: 0201870738. ISBN-13: 978-0201870732.

[7]. Zagier, D. (1990). A One-Sentence Proof That Every Prime p Is a Sum of Two Squares. In: American Mathematical Monthly 97(2), 144.

[8]. Honsberger, R. (1970). Writing a Number as a Sum of Two Squares. In Ingenuity In Mathematics (Anneli Lax New Mathematical Library, pp. 61-66). Mathematical Association of America. doi:10.5948/UPO9780883859384.012.

[9]. Vladimirovich, D. V. and Genadievna, S. A. (2017). A generalization of fermat’s theorem on sum of two squares. Austrian Journal of Technical and Natural Sciences.

[10]. Ore, O. (1988). Number theory and its history (Dover Books on Mathematics). Dover Publications. ISBN-10: 0486656209. ISBN-13: 978-0486656205.