This is a preview and has not been published.

The Solution of Fermat’s Two Squares Equation and Its Generalization In Lucas Sequences


  • Ali S. Athab Department of Mathematics, Faculty of Computer Science and Mathematics, University of Kufa, Al Najaf, Iraq.
  • Hayder R. Hashim Department of Mathematics, Faculty of Computer Science and Mathematics, University of Kufa, Al Najaf, Iraq.



Diophantine equation, Elliptic curves, Fermat’s two squares Theorem, Lucas sequences, Prime numbers


As it is well known, there are an infinite number of primes in special forms such as Fermat's two squares form, p=x^2+y^2 or its generalization, p=x^2+y^4, where the unknowns x, y, and p represent integers. The main goal of this paper is to see if these forms still have an infinite number of solutions when the unknowns are derived from sequences with an infinite number of prime numbers in their terms. This paper focuses on the solutions to these forms where the unknowns represent terms in certain binary linear recurrence sequences known as the Lucas sequences of the first and second types.


Download data is not yet available.


Landau E. Gel¨oste und ungel¨oste Probleme aus der Theorie der Primzahlverteilung und der Riemannschen Zetafunktion Dtsch. Math. 1912; 21: 208-228. .

Shanks D. An analytic criterion for the existence of infinitely many primes of the form 1/2 (n^2+1). Ill. J Math. 1964; 8: 377–379. 10.1215/1256059560.

Shanks D. On Numbers of the Form n^4+1. Math Comput. 1961; 15: 186–189. /S0025-5718-1961.

Bussotti P, Pisano R. Historical and Foundational Details on the Method of Infinite Descent: Every Prime Number of the Form 4n + 1 is the Sum of Two Squares. Found Sci. 2020; 25(3): 671–702.

Euler L. Demonstration theormatis fermatiani omnem numerum primum formae 4n + 1 esse summam duorum quadratorum, Novi Comment. Acad Sci. 1760; 5(1754–5): 3–13. .

Zhang S. On the Infinitude of Some Special Kinds of Primes. Math GM. 2009; 49(3): 1943-1987. .

Friedlander J, Iwaniec H. The Polynomial x^2+y^4 Captures its Primes. Ann Math. 1998; 148(3): 945–1040. .

Dubner H, Keller W. New Fibonacci and Lucas Primes. Math Comput. 1999; 68: 417–427. .

DOĞRU Y. New Presentations of Real Numbers with k-Lucas Numbers. J BAUN Inst Sci Technol. 2023; 25(1): 31-36.

Somer L, Krızek M. On Primes in Lucas Sequences. Fibonacci Q. 2015; 53(1): 2–23. .

Hashim HR, Szalay L, Tengely S. Markoff-Rosenberger Triples and Generalized Lucas Sequences. Period Math Hung. 2022; 85(1): 188–202. .

Trojovsky P. On Diophantine equations related to order of appearance in Fibonacci sequence. Math. 2019; 7(11): 1073-1083.

Shanmuganandham P, Deepa C. Sum of Squares of ‘n’ Consecutive Carol Numbers. Baghdad Sci J. 2023 Mar. 1; 20(1(SI)): 0263-0263.

Devi MU, Kamaraj M, Arockiaraj S. Odd Fibonacci Edge Irregular Labeling for Some Trees Obtained from Subdivision and Vertex Identification Operations. Baghdad Sci. J 2023; 20(1(SI)): 0332-0332.

Athab AS, Hashim HR. On Certain Prime Numbers in Lucas Sequences. 7th Int Conf. Comb Cryptography Comp Sci Comput. 2022; 157–168. .

Athab AS, Hashim HR. The Generalized Lucas Primes in the Landau’s and Shanks’ Conjectures. J Math Stat. 2023; 4(1): 41–57.

Stein W, Joyner D, Kohel D, Cremona J, Burçin E, Estrada D, et al. SageMath, the Sage Mathematics Software System (Version 9.0), 2020.