OFFSET
1,1
LINKS
Eric Weisstein's World of Mathematics, Heronian Triangle
EXAMPLE
The only Heronian triangle with perimeter 24 has sides {6, 8, 10} and thus it is not primitive. Hence 24 is in the sequence.
MATHEMATICA
hpp[p_] := Catch@Block[{t=0, c, q=p/2}, Do[c = p-a-b; If[c >= b && a+c > b && a+b > c && IntegerQ@ Sqrt[q (q-a) (q-b) (q-c)], t++; If[GCD[a, b, c] == 1, Throw@ False]], {a, p/3}, {b, a, p-a-1}]; t > 0]; Select[2 Range[350], hpp]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Resta, Jun 14 2018
STATUS
approved