A mathematician wanted to teach his children the value of cooperation, so he told them the following
"I chose a secret triangle for which the lengths of its sides are all integers.
To you my dear son Charlie, I am giving the triangle's perimeter. And to you, my beloved daughter Ariella, I am giving its area.
Since you are both such talented mathematicians, I'm sure that together you can find the lengths of the triangle's sides."
Instead of working together, Charlie and Ariella had the following conversation after their father gave each of them the information he promised.
Charlie: "Alas, I cannot deduce the lengths of the sides from my knowledge of the perimeter."
Ariella: "I do not know the perimeter, but I cannot deduce the lengths of the sides from just knowing the area. Maybe our father is right and we should cooperate after all."
Charlie: "Oh no, no need. Now I know the lengths of the sides."
Ariella: "Well, now I know them as well."
Find the lengths of the triangle's sides and explain the dialogue above.
I augmented my program to run the constraints as laid out in the last post. I ran sides up to length 50. There was only one solution:
rabbit-3:~ lord$ her2
sides: 2 2 3, Perimeter = 7, Area = 1.98...
The program, for those interested, is here:
program
Edited on February 16, 2019, 11:27 am