Sum and Product Confusion Puzzle

Solve the Sum and Product Confusion Puzzle

Go through the puzzle and help in solving Sam and Pete Sum and Product Confusion Puzzle.

Sum Sam and Product Pete are in class when their teacher gives Sam the Sum of two numbers and Pete the product of the same two numbers (these numbers are greater than or equal to 2). They must figure out the two numbers.

  • Sam: I don’t know what the numbers are Pete.
  • Pete: I knew you didn’t know the numbers… But neither do I.
  • Sam: In that case, I do know the numbers.

What are the numbers?

Sum and Product Confusion Puzzle

Solution

Sam the Sum of two numbers and Pete the product of the same two numbers

Detailed Explanation

Sum and Product Confusion Puzzle:

Assume numbers are a and b
As Sam has sum of no. a + b = x (which has given )—————(1)
and Pete has product a*b = y (given)

now,

(a + b)^{2} = a^{2} + b^{2} + 2ab

find out a^{2} + b^{2} from above

now find

a – b = \sqrt{a^{2} + b^{2} – 2ab}——————–(2)

solve (1) and (2)

n get the a and b … it depends on x (sum) and y (product)

Finally we can say if you know sum (name) and product (name) you know the number 😛

Prime Course Trailer

Related Banners

Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription

Get over 200+ course One Subscription

Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others

Checkout list of all the video courses in PrepInsta Prime Subscription

Checkout list of all the video courses in PrepInsta Prime Subscription