Find Perfect Square: Prime p & q Values

  • Thread starter Euler_Euclid
  • Start date
In summary, the values of p and q that satisfy the equation p^2 + q^2 + 7pq = k^2 are (p, p), (3, 11), and (11, 3). The equation can be further simplified to (p+q)^2 + 5pq = k^2, and after analyzing the possible cases, it can be determined that p and q must both be odd. The only possible solutions are then (p,p), (3,11), and (11,3).
  • #1
Euler_Euclid
10
0
Find all values of p and q if p and q are prime numbers, [tex]p^2 + q^2 + 7pq[/tex] is a perfect square.
 
Mathematics news on Phys.org
  • #2
(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.
 
  • #3
please explain the whole solution. It was an Olympiad question and all of my friends couldn't do it.
 
  • #4
[tex]p^2 + 7pq + q^2[/tex]

For p = q, it reduces to [tex]9p^2 = (3p)^2[/tex]. 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

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

[tex]
1.k-p-q = 5, k+p+q = pq
[/tex]

From the above equations we get k = 5+p+q and hence
[tex]
5+2p+2q = pq
=> 5 + 2q = p(q-2)
=> p = \frac{2q+5}{q-2} = 2 + \frac{9}{q - 2} [/tex]
[tex]
=> q - 2 = 1, 3, or 9
[/tex]

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

The other possibilites are

[tex]
2. k-p-q = 5p, k+p+q = q [/tex](no solution)
[tex]
3. k+p+q = 5, k-p-q = pq [/tex](no solution)
[tex]
4. k+p+q = 5p, k-p-q = q [/tex](gives p = q)

Thus, the only possible solutions are (p,p), (3,11) and (11,3)
 
  • #5
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.
 

FAQ: Find Perfect Square: Prime p & q Values

What is the purpose of finding perfect square prime p and q values?

The purpose of finding perfect square prime p and q values is to identify two prime numbers that when multiplied together, result in a perfect square. This is useful in number theory and cryptography as these values can be used to create secure encryption keys.

How do you find perfect square prime p and q values?

To find perfect square prime p and q values, you need to start by identifying two prime numbers. Then, you can use the formula p = 2n+1 and q = 2m+1, where n and m are positive integers. These values will result in two prime numbers that, when multiplied together, will give a perfect square.

What is the significance of using prime numbers for finding perfect squares?

Prime numbers are essential in finding perfect squares because they have no factors besides 1 and themselves. This means that when two prime numbers are multiplied together, the resulting number will only have two factors, making it a perfect square.

Can any two prime numbers be used to find a perfect square?

No, not all prime numbers will result in a perfect square when multiplied together. The prime numbers used must follow the formula p = 2n+1 and q = 2m+1, as mentioned in the answer to question 2.

Are there any real-world applications for finding perfect square prime p and q values?

Yes, finding perfect square prime p and q values has many real-world applications. As mentioned, they are commonly used in number theory and cryptography to create secure encryption keys. They can also be used in various mathematical problems and puzzles.

Similar threads

Replies
1
Views
1K
Replies
4
Views
1K
Replies
1
Views
994
Replies
2
Views
985
Replies
1
Views
935
Replies
4
Views
1K
Replies
1
Views
1K
Replies
2
Views
2K
Back
Top