All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Equation in integers (Posted on 2020-12-06) Difficulty: 3 of 5
Determine all pairs of prime numbers (p, q) such that p2 + 5pq + 4q2 is the square of an integer.

No Solution Yet Submitted by Danish Ahmed Khan    
Rating: 3.0000 (1 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts computer exploration | Comment 1 of 5
for p1=1:200
    for p2=1:200
        p=nthprime(p1);
        q=nthprime(p2);
        sq=p^2+5*p*q+4*q^2;
        sr=sqrt(sq);
        if round(sr)*round(sr)==sq
            disp([nthprime(p1) nthprime(p2) sq sr])
        end
    end
end

finds only 

     p     q  p^2+5*p*q+4*q^2   square
                                 root
     5    11        784           28
     7     5        324           18
    13     3        400           20

having checked primes up to the 200th, 1223.

  Posted by Charlie on 2020-12-06 15:37:26
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (14)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information