OFFSET
1,2
COMMENTS
The Mathematica program captures all primitive Heronian areas up to 540 by searching through integer triangles with a longest side ranging from 3 to at least 484. This upper limit for the longest side is determined by observing that the shortest side of a Heronian triangle is >= 3 and the smallest area of an integer triangle with longest side z and shortest side 3 is generated by the integer triple (3, z-2, z).
EXAMPLE
a(10) = 4 as there are 4 primitive Heronian triangles with area 60. The triples are (10,13,13), (8,15,17), (13,13,24), (6,25,29).
MATHEMATICA
PROG
(PARI) a(n)=sum(z=sqrtint(sqrtint(192*n^2)-1)+1, sqrtint(9*(64*n^2+5)\20), sum(y=z\2+1, z, my(t=(y*z)^2-(12*n)^2, x, g=gcd(y, z)); if(issquare(t, &t), (issquare(y^2+z^2-2*t, &x) && gcd(x, g)==1 && x<=y) + (t && issquare(y^2+z^2+2*t, &x) && gcd(x, g)==1 && x<=y), 0))) \\ Charles R Greathouse IV, Jun 27 2013
CROSSREFS
KEYWORD
nonn
AUTHOR
Frank M Jackson, Jun 26 2013
STATUS
approved