Qm

Two numbers whose sum equals their product

Two plus two equals two times two.

  1. Find every pair of numbers a and b (not necessarily whole numbers) with a + b = a × b.
  2. Which of those pairs consist of whole numbers?
  3. Is there a triple of positive whole numbers whose sum equals their product?
Show a hint

Solve a + b = ab for b in terms of a.

Your answer

Solving needs a free account

Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.

Discussion

Sign in to join the discussion · reading is open to everyone

💡 Discussion rules

  1. No full solutions here. Hints and approaches only.
  2. Complexity, edge cases and intuition are the point.
  3. Interview experiences are welcome. Respect your NDAs.

Loading discussion…

Learn the concepts

The theory behind this question.

Related questions

The 1089 trickTwo-digit numbers that are seven times their digit sumWriting 100 as a sum of consecutive numbers999 times 999 in your headThe person whose age is the square root of the year
All questions →