Two numbers whose sum equals their product
Two plus two equals two times two.
- Find every pair of numbers a and b (not necessarily whole numbers) with a + b = a × b.
- Which of those pairs consist of whole numbers?
- 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
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- 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 →