OFFSET
1,1
COMMENTS
Here a primitive Heronian triangle has integer sides a,b,c with gcd(a,b,c) = 1 and integral area. Note that all primes of the form 4k+1 are in this sequence. It appears that a prime of the form 4k+3 is never the longest side of a Heronian triangle. Cheney's article contains many theorems about these triangles.
LINKS
Ray Chandler, Table of n, a(n) for n = 1..10000 (first 240 terms from Vincenzo Librandi)
Wm. Fitch Cheney, Jr., Heronian Triangles, Amer. Math. Monthly, Vol. 36, No. 1 (Jan 1929), 22-28.
Eric Weisstein's World of Mathematics, Heronian Triangle
EXAMPLE
5 is on this list because the triangle with sides 3, 4, 5 has integral area.
MATHEMATICA
nn=150; lst={}; Do[s=(a+b+c)/2; If[IntegerQ[s] && GCD[a, b, c]==1, area2=s(s-a)(s-b)(s-c); If[area2>0 && IntegerQ[Sqrt[area2]], AppendTo[lst, a]]], {a, nn}, {b, a}, {c, b}]; Union[lst]
CROSSREFS
KEYWORD
nonn
AUTHOR
T. D. Noe, Jun 22 2004
STATUS
approved