|
||
Title: semi perimeter a square Post by Christine on Mar 30th, 2014, 1:26pm Can you find a triangle whose area, sides are integers and the semi perimeter is a square? Is there an algorithm to generate them? |
||
Title: Re: semi perimeter a square Post by pex on Mar 30th, 2014, 5:27pm on 03/30/14 at 13:26:51, Christine wrote:
Yes. The simplest triangle with integer sides and area that I can think of has sides 3,4,5. Its semiperimeter is 6, so scaling the whole thing up by a factor of 6 works: the 18,24,30 triangle fits the requirements. |
||
Title: Re: semi perimeter a square Post by Christine on Apr 10th, 2014, 3:18pm on 03/30/14 at 17:27:03, pex wrote:
Thanks. I'm looking for a primitive Heronian triangle |
||
Title: Re: semi perimeter a square Post by towr on Apr 10th, 2014, 11:13pm The smallest primitive with those properties is 8,5,5 (which is just 2 (5,4,3)'s put together) You can generate a list based on http://en.wikipedia.org/wiki/Heronian_triangle#Exact_formula_for_Heronian_triangles e.g. Python Code:
(697, 657, 104) is the first I've found to also have a square area. |
||
Powered by YaBB 1 Gold - SP 1.4! Forum software copyright © 2000-2004 Yet another Bulletin Board |