P is the sum of 2 consecutive squares

  • Context: MHB 
  • Thread starter Thread starter alexmahone
  • Start date Start date
  • Tags Tags
    Squares Sum
Click For Summary
SUMMARY

The discussion confirms that an odd prime \( p \) can be expressed as the sum of two consecutive squares, specifically \( p = a^2 + (a+1)^2 \), if and only if \( p \) can be represented in the form \( p = \frac{u^2 + 1}{2} \), where \( u = 2a + 1 \). The derived equation \( 2p = (2a + 1)^2 + 1 \) supports this conclusion. Additionally, it is established that this relationship holds regardless of whether \( p \) is prime, as demonstrated with the example of \( a = 6 \), yielding \( p = 85 \), which is not prime.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Familiarity with algebraic manipulation of equations
  • Knowledge of quadratic expressions and their factorizations
  • Basic concepts of number theory, particularly regarding sums of squares
NEXT STEPS
  • Study the properties of prime numbers in number theory
  • Learn about quadratic forms and their applications
  • Explore the relationship between sums of squares and prime representations
  • Investigate the implications of the equation \( p = \frac{u^2 + 1}{2} \) in greater detail
USEFUL FOR

Mathematicians, number theorists, and students interested in prime number properties and algebraic identities related to sums of squares.

alexmahone
Messages
303
Reaction score
0
Let $p$ be an odd prime.

Prove that $p$ is the sum of 2 consecutive squares i.e. $p=a^2+(a+1)^2$ if and only if $p$ has the form $p=\dfrac{u^2+1}{2}$.
 
Mathematics news on Phys.org
I think I got it.

$p=a^2+(a+1)^2=2a^2+2a+1$

$2p=4a^2+4a+2=(2a+1)^2+1$

$p=\dfrac{(2a+1)^2+1}{2}=\dfrac{u^2+1}{2}$ where $u=2a+1$

Could someone confirm? I didn't use the fact that $p$ is prime.
 
Alexmahone said:
I think I got it.

$p=a^2+(a+1)^2=2a^2+2a+1$

$2p=4a^2+4a+2=(2a+1)^2+1$

$p=\dfrac{(2a+1)^2+1}{2}=\dfrac{u^2+1}{2}$ where $u=2a+1$

Could someone confirm? I didn't use the fact that $p$ is prime.

above is true whether p is prime or not as you proved it

as an example a= 6

$p = a^2 + (a+1)^2 = 6^2+7^2 = 85 = \dfrac{1}{2}(13^2+1)$ and 85 is not prime
 

Similar threads

  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 48 ·
2
Replies
48
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K