Can we find a pair with given sum

Kinley Padilla

Kinley Padilla

Answered question

2022-03-16

Can we find a pair with given sum and product?
For eg if sum =5 and product =6 then the pair will be (2,3)
Is there a efficient way to do this?

Answer & Explanation

Painiaerocaaph

Painiaerocaaph

Beginner2022-03-17Added 5 answers

It has been known since the Babylonians (with other notations!) that the numbers with given sum s and product p are the roots of the quadratic equation
x2sx+p=0
if the equation has real roots, i.e. if s24p.

Do you have a similar question?

Recalculate according to your conditions!

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?