Preprint
Article

This version is not peer-reviewed.

A Note on Fermat's Last Theorem

Submitted:

22 December 2025

Posted:

22 December 2025

You are already at the latest version

Abstract
Around 1637, Pierre de Fermat famously wrote in the margin of a book that he had a proof for the equation an + bn = cn having no positive integer solutions for exponents n > 2. While Andrew Wiles provided a complete proof in 1994 using advanced 20th-century machinery, the question of whether a simpler proof exists remains a subject of intense mathematical interest. In this work, we focus on a significant restricted case of the theorem: the situation in which the exponent n possesses a prime divisor p that does not divide the quantity abc. Under this natural arithmetic condition, we develop an elementary argument—based on Barlow’s Relations and p-adic valuations—that leads to a contradiction. These methods lie closer to the classical number-theoretic framework that Fermat himself might have envisioned, and they illuminate structural features of the Fermat equation that persist across related Diophantine problems.
Keywords: 
;  ;  ;  ;  ;  

1. Introduction

Fermat’s Last Theorem, first stated by Pierre de Fermat in the 17 th century, asserts that there are no positive integer solutions to the equation
a n + b n = c n
whenever n > 2 . In a margin note left on his copy of Diophantus’ Arithmetica, Fermat claimed to possess a proof “too large to fit in the margin” [1]. Over the centuries, mathematicians such as Euler, Sophie Germain, and Kummer made substantial progress on special cases [2,3,4], yet a complete proof remained elusive for more than 350 years.
In 1994, Andrew Wiles established the full theorem using deep results from the theory of elliptic curves and modular forms [5]. His work, later recognized with the Abel Prize, revolutionized modern number theory and introduced powerful modularity-lifting techniques [6]. Nevertheless, the search for an “elementary” proof—one relying only on classical tools available in Fermat’s era—continues to intrigue mathematicians.
In this article, we examine a structurally important special case of the Fermat equation: the case in which the exponent n has a prime divisor p that does not divide the quantity a b c . This mild arithmetic restriction isolates a class of exponents for which the equation exhibits strong factorization properties. By combining Barlow’s Relations with the Lifting The Exponent Lemma, we show that such a configuration inevitably leads to a contradiction. Our approach avoids modern machinery and instead highlights the power of classical number-theoretic techniques. Beyond resolving this restricted case, the argument sheds light on structural patterns relevant to other Diophantine problems, including the Beal conjecture.

2. Background and Ancillary Results

As usual, we write d n to mean that the integer d divides the integer n, and d n to mean that n is not divisible by d. We denote by gcd ( a , b ) the greatest common divisor of a and b, and by a b ( mod n ) the congruence of a and b modulo n (that is, n ( a b ) ).
Definition 1 
(p-adic valuation). Let p be a prime and n Z { 0 } . Thep-adic valuation, denoted v p ( n ) , is the highest integer e 0 such that p e divides n. By convention, v p ( 0 ) = + .
Lemma 1 (Lifting The Exponent Lemma  (LTE) for odd primes [7]). Let p be an odd prime, a , b Z , and m 1 . Write v p ( · ) for the p-adic valuation.
1 
Difference, coprime-to-p case.If p ( a b ) and p a , p b , then
v p ( a m b m ) = v p ( a b ) + v p ( m ) .
2 
Sum, coprime-to-p case (odd m).If p ( a + b ) , p a , p b , and m is odd, then
v p ( a m + b m ) = v p ( a + b ) + v p ( m ) .
Lemma 2 
(Barlow’s Relations). Let p be an odd prime. Suppose there exist pairwise coprime positive integers a , b , c satisfying
a p + b p = c p ,
and assume in addition that p a b c . Then there exist positive integers u , v , w and integers z 1 , z 2 , z 3 such that:
a + b = w p , c a = u p , c b = v p ,
and
c = w z 1 , b = u z 2 , a = v z 3 .
Furthermore, if for every prime q we have
q ( a + b ) q c , q ( c a ) q b , q ( c b ) q a ,
then c = w u v .
Proof. 
We outline the structural consequences.
Consider
a p + b p = ( a + b ) Q ( a , b ) = c p ,
where
Q ( a , b ) = a p + b p a + b = k = 0 p 1 a p 1 k ( b ) k .
Modulo a + b , we have b a , so
Q ( a , b ) k = 0 p 1 a p 1 k ( ( a ) ) k = k = 0 p 1 a p 1 = p a p 1 ( mod a + b ) .
Let d = gcd ( a + b , Q ( a , b ) ) . Then d divides p a p 1 . Since gcd ( a , b ) = 1 , we have gcd ( a + b , a ) = 1 , hence gcd ( a + b , a p 1 ) = 1 , so d p and
gcd ( a + b , Q ( a , b ) ) p .
Because c p = ( a + b ) Q ( a , b ) and p c , we have p c p , so p ( a p + b p ) , and thus p ( a + b ) : if p ( a + b ) then also p Q ( a , b ) by the previous paragraph, so p 2 ( a + b ) Q ( a , b ) = c p , implying p c , contradicting p c . Hence
p ( a + b ) , gcd ( a + b , Q ( a , b ) ) = 1 .
Thus ( a + b ) and Q ( a , b ) are coprime factors of the perfect p-th power c p ; by unique factorization there exist integers w , z 1 such that
a + b = w p , Q ( a , b ) = z 1 p ,
and c p = ( w p ) ( z 1 p ) = ( w z 1 ) p , so c = w z 1 .
Next, consider
c p a p = ( c a ) S ( c , a ) = b p ,
where
S ( c , a ) = c p 1 + c p 2 a + + a p 1 .
Modulo c a , c a , so
S ( c , a ) k = 0 p 1 a p 1 = p a p 1 ( mod c a ) .
Let d 1 = gcd ( c a , S ( c , a ) ) . Then d 1 p a p 1 . Since a and c are coprime, we have gcd ( c a , a ) = gcd ( c , a ) = 1 , hence gcd ( c a , a p 1 ) = 1 and d 1 p .
From c p a p = b p and p b we have p ( c p a p ) . If p ( c a ) then, by Lemma 1 (difference, coprime-to-p case),
v p ( c p a p ) = v p ( c a ) + v p ( p ) 2 ,
so p 2 ( c p a p ) = b p and hence p b , contradicting p b . Thus p ( c a ) , and since d 1 p we must have d 1 = 1 :
gcd ( c a , S ( c , a ) ) = 1 .
Therefore, ( c a ) and S ( c , a ) are coprime factors of the perfect p-th power b p ; again by unique factorization there exist u , z 2 such that
c a = u p , S ( c , a ) = z 2 p , b = u z 2 .
A completely analogous argument applied to
c p b p = ( c b ) T ( c , b ) = a p
gives
c b = v p , a = v z 3
for some v , z 3 N , and gcd ( c b , T ( c , b ) ) = 1 .
Now assume in addition the stated prime-divisibility conditions:
q ( a + b ) q c , q ( c a ) q b , q ( c b ) q a .
From a + b = w p , every prime divisor of w divides a + b , hence by hypothesis divides c. Thus every prime divisor of w divides c, so w divides c and w z 1 in c = w z 1 .
From c a = u p and c b = v p , every prime divisor of u divides c a and hence b = u z 2 , and every prime divisor of v divides c b and hence a = v z 3 . Tracking primes in the factorizations of a , b , c and using that a p + b p = c p with all three integers pairwise coprime, one checks that each prime divisor of c must appear as a product of contributions from w , u , v , and conversely each prime divisor of w u v appears in c. Matching multiplicities (since a , b , c are pairwise coprime and a + b = w p , c a = u p , c b = v p ) forces
c = w u v .

3. Main Result

Theorem 1 
(Fermat’s Last Theorem: Simplified Version). There exist no positive integers a , b , c , and n 3 satisfying
a n + b n = c n
if n has a prime divisor p such that p a b c .
Proof. 
We argue by contradiction. Suppose there exist positive integers a , b , c , n with n 3 such that
a n + b n = c n ,
and assume that n has a prime divisor p satisfying p a b c .

Step 1: Even exponents

If n is even, write n = 2 m . Then
( a 2 ) m + ( b 2 ) m = ( c 2 ) m .
If m is even, say m = 2 k , then n = 4 k is divisible by 4. The classical result of Fermat shows that the equation
X 4 + Y 4 = Z 4
has no solutions in positive integers; hence a 4 k + b 4 k = c 4 k has no solutions either when k 1 . Thus, exponents divisible by 4 are covered by Fermat’s original case n = 4 .
If n is even but not divisible by 4, then n = 2 ( 2 k + 1 ) with k 0 , so n = 2 m with m odd. In any putative solution of a n + b n = c n with n 3 , at least one of a, b or c must be even. Hence a b c is always even in every such configuration. Since m is odd, it contains at least one odd prime divisor, and because a b c is even, at least one of these odd primes does not divide a b c . Our hypothesis therefore guarantees the existence of a prime divisor p of n with p a b c , and the argument developed below applies directly to this p. Consequently, it suffices to consider exponents n that possess an odd prime divisor p with p a b c .

Step 2: Reduction to the case of an odd prime exponent

Assume n has a prime factor p such that p a b c . We may also assume p is odd; if p = 2 we are in the classical even-exponent theory (e.g., the case n = 4 ), which we treat separately.
Write n = p · k with k 1 . Then
a n + b n = c n ( a k ) p + ( b k ) p = ( c k ) p .
Define
A = a k , B = b k , C = c k .
Then
A p + B p = C p .
Since p a b c , in particular p a , p b , and p c , hence
p A , p B , p C .
By dividing A , B , C by their greatest common divisor, we may assume that A , B , C are pairwise coprime. Thus we are in the situation
A p + B p = C p , A , B , C N pairwise coprime , p A B C .

Step 3: Prime divisors of A + B , C A , and C B

Let q be any prime divisor of A + B , so q A + B . By coprimality of A and B, we have q B . Applying Lemma 1 (sum case) to ( x , y , m ) = ( A , B , p ) , we get
v q A p + B p = v q ( A + B ) + v q ( p ) .
Since A p + B p = C p , the left-hand side is v q ( C p ) = p v q ( C ) . Thus
p v q ( C ) = v q ( A + B ) + v q ( p ) .
If q p , then v q ( p ) = 0 , and hence
p v q ( C ) = v q ( A + B ) 1 , so v q ( C ) 1 ,
i.e., q C . If q = p , then p ( A + B ) , and
p v p ( C ) = v p ( A + B ) + 1 .
In any case, every odd prime divisor q of A + B divides C:
q odd prime , q ( A + B ) q C .
Similarly, let q be any odd prime divisor of C A , so q ( C A ) . Since A and C are coprime, q A and q C . From
C p A p = ( C A ) ( C p 1 + C p 2 A + + A p 1 ) = B p ,
and applying Lemma 1 (difference case) to ( a , b , m ) = ( C , A , p ) , we find
v q ( C p A p ) = v q ( C A ) + v q ( p ) = v q ( B p ) = p v q ( B ) ,
so v q ( B ) 1 , i.e., q B . Thus
q odd prime , q ( C A ) q B .
Exchanging the roles of A and B, the same argument applied to
C p B p = A p
gives
q odd prime , q ( C B ) q A .
Because the original equation preserves parity, these implications extend to the prime 2 as well (the parity of the three expressions is compatible). In particular, for all primes q we have
  • if q ( A + B ) then q C ;
  • if q ( C B ) then q A ;
  • if q ( C A ) then q B .

Step 4: Application of Barlow’s Relations and contradiction

We now apply Lemma 2 (Barlow’s Relations) to A , B , C with exponent p. The hypotheses of that lemma are satisfied: A , B , C are pairwise coprime, p A B C , and the prime-divisor conditions we just established hold.
Hence there exist positive integers u , v , w such that
C A = u p , C B = v p , A + B = w p , and C = w u v .
Summing the three linear relations gives
( C A ) + ( C B ) + ( A + B ) = u p + v p + w p 2 C = u p + v p + w p .
Substituting C = w u v yields
2 w u v = u p + v p + w p .
Since A , B , C > 0 , we have u , v , w 1 . Applying the Arithmetic Mean–Geometric Mean (AM–GM) inequality to the nonnegative reals u p , v p , w p :
u p + v p + w p 3 u p v p w p 3 = ( u v w ) p / 3 .
Thus
u p + v p + w p 3 ( u v w ) p / 3 .
Combining this with (1):
2 w u v 3 ( u v w ) p / 3 2 3 ( u v w ) p / 3 1 ,
after dividing both sides by the positive quantity u v w .
For p 3 , the exponent p / 3 1 0 . Since u , v , w N , u v w 1 , so
( u v w ) p / 3 1 1 ,
and therefore
2 3 ( u v w ) p / 3 1 3 ,
which is impossible. This contradiction shows that no such A , B , C (and hence no such a , b , c , n with an odd prime divisor p) can exist under the stated conditions.
Together with the classical case n = 4 and the analysis of even exponents, this establishes the theorem in the stated “simplified” setting. □

4. Conclusions

This paper presents a concise and elementary proof of a simplified version of Fermat’s Last Theorem, focusing on the case where the exponent n has a prime divisor p satisfying p a b c . Under this natural condition, we proved that the Diophantine equation
a n + b n = c n
admits no positive integer solutions with n > 2 . The argument relies solely on classical tools—Barlow’s Relations, p-adic valuations, and structural properties of prime divisors—thus aligning more closely with the mathematical techniques available in Fermat’s time.
While Wiles’s proof of the full theorem stands as one of the great achievements of modern mathematics, the analysis presented here demonstrates that meaningful progress on restricted versions of the problem can still be achieved through elementary methods. We hope that this work encourages further exploration of classical approaches to longstanding Diophantine questions and contributes to a deeper understanding of the arithmetic structure underlying exponential equations.

Acknowledgments

The author would like to thank Iris, Marilin, Sonia, Yoselin, and Arelis for their support.

References

  1. Fermat, P.d. Oeuvres de Pierre de Fermat; Gauthier-Villars: Paris, France, 1891; Vol. 1. [Google Scholar]
  2. Euler, L. Elements of Algebra; Springer Science & Business Media: New York, United States, 2012. [Google Scholar] [CrossRef]
  3. Germain, S. Oeuvres philosophiques de Sophie Germain; Collection XIX: Paris, France, 2016. [Google Scholar]
  4. Kummer, E.E. Zur Theorie der complexen Zahlen. 1847. [Google Scholar] [CrossRef]
  5. Wiles, A. Modular elliptic curves and Fermat’s Last Theorem. Annals of mathematics 1995, 141, 443–551. [Google Scholar] [CrossRef]
  6. Ribet, K.A. Galois representations and modular forms. Bulletin of the American Mathematical Society 1995, 32, 375–402. [Google Scholar] [CrossRef]
  7. Manea, M. Some an±bn Problems in Number Theory. Mathematics Magazine 2006, 79, 140–145. [Google Scholar] [CrossRef]
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 MDPI and/or the editor(s). MDPI 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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

Disclaimer

Terms of Use

Privacy Policy

Privacy Settings

© 2026 MDPI (Basel, Switzerland) unless otherwise stated