Find Perfect Square: Prime p & q Values

  • Context: Graduate 
  • Thread starter Thread starter Euler_Euclid
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around finding all pairs of prime numbers p and q such that the expression p^2 + q^2 + 7pq results in a perfect square. The scope includes mathematical reasoning and exploration of potential solutions.

Discussion Character

  • Mathematical reasoning, Exploratory, Technical explanation

Main Points Raised

  • One participant suggests that pairs (p, p), (3, 11), and (11, 3) satisfy the condition and recommends analyzing the equation modulo 4 or 36 to eliminate other possibilities.
  • Another participant requests a full explanation of the solution, noting that it was an Olympiad question that posed challenges to their peers.
  • A detailed breakdown of the expression p^2 + 7pq + q^2 is provided, indicating that for p = q, it simplifies to a perfect square, specifically 9p^2.
  • It is noted that substituting p = 2 leads to q = 2 as the only feasible solution, implying that both p and q must be odd.
  • Further exploration reveals that the expression can be rearranged to k^2 = (p+q)^2 + 5pq, leading to a system of equations that yields potential solutions for p and q.
  • Specific values derived from the equations include (p, q) = (11, 3), (5, 5), and (3, 11), while other configurations are stated to yield no solutions.
  • A participant acknowledges the initial decomposition approach and emphasizes the importance of parity analysis in number theory problems.

Areas of Agreement / Disagreement

Participants generally agree on the identified solutions (p, p), (3, 11), and (11, 3), but there is no consensus on whether other pairs may exist or on the completeness of the analysis.

Contextual Notes

The discussion includes assumptions about the nature of prime numbers and relies on specific mathematical manipulations that may not cover all cases or configurations.

Euler_Euclid
Messages
10
Reaction score
0
Find all values of p and q if p and q are prime numbers, p^2 + q^2 + 7pq is a perfect square.
 
Mathematics news on Phys.org
(p, p), (3, 11), (11, 3) all work. I'd suggest trying the equation mod 4 or 36 to see if you can rule out others.
 
please explain the whole solution. It was an Olympiad question and all of my friends couldn't do it.
 
p^2 + 7pq + q^2

For p = q, it reduces to 9p^2 = (3p)^2. It therefore is a perfect square.

You can put p = 2 and show that only q = 2 gives a feasible solution, which is covered in p = q. Thus, we conclude that p,q are both odd, and hence the value of the expression is odd

For other values

<br /> p^2 + 7pq + q^2 = (p+q)^2 + 5pq = k^2
<br /> 5pq = k^2 - (p+q)^2 = (k - p - q)(k + p + q)<br />
Thus, since p and q are primes, the only possible solutions are

<br /> 1.k-p-q = 5, k+p+q = pq<br />

From the above equations we get k = 5+p+q and hence
<br /> 5+2p+2q = pq<br /> =&gt; 5 + 2q = p(q-2)<br /> =&gt; p = \frac{2q+5}{q-2} = 2 + \frac{9}{q - 2}
<br /> =&gt; q - 2 = 1, 3, or 9<br />

This gives (p,q) = (11,3) or (5,5) or (3,11)

The other possibilites are

<br /> 2. k-p-q = 5p, k+p+q = q(no solution)
<br /> 3. k+p+q = 5, k-p-q = pq(no solution)
<br /> 4. k+p+q = 5p, k-p-q = q(gives p = q)

Thus, the only possible solutions are (p,p), (3,11) and (11,3)
 
Nice solution praharmitra. I saw the decomposition as well but didn't complete the solution since I didn't analyze the small cases at first. I have to remember that even/odd parity analysis is always a good first step in number theory equations.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K