https://github.com/timweri/geocache-prod-sum-diff-puzzle
https://github.com/timweri/geocache-prod-sum-diff-puzzle
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/timweri/geocache-prod-sum-diff-puzzle
- Owner: timweri
- Created: 2021-01-15T22:50:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-17T18:44:23.000Z (over 4 years ago)
- Last Synced: 2025-03-06T10:55:45.621Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# geocache-prod-sum-diff-puzzle
Paula, Sue and Daisy are mathematical geniuses. They can do any number of calculations in their head instantly. One day, they're given the task of figuring out two numbers. Those two numbers are in the range between and (inclusive) and they're whole numbers (no decimal numbers). Both numbers can be the same too.
Paula is told the product of both numbers (one number multiplied with the other), Sue is told the sum of both numbers and Daisy is told the difference between the two numbers (one number substracted from the other). However, they're not allowed to tell those numbers to each other.
Then, the following conversation ensues:
```
Paula: I don't know the two numbers.
Sue: You don't need to tell me that, I've known that already.
Paula: Ah, in that case, I know the numbers now.
Sue: Ok, I know the numbers now too.
Daisy: I still don't know the numbers. I can guess one number, which is likely to be one of the two numbers, but I don't know for sure.
Paula: I know which number you're thinking of, but this one is wrong. It's not one of the two numbers.
Daisy: Ah, then I know the numbers now too.
```