OFFSET
1,12
COMMENTS
If integer-sided triangle has integer area, area is divisible by 6.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10085
PROG
(PARI)
A051585(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); if(issquare(t, &t), (issquare(y^2+z^2-2*t, &x) && x<=y) + (t && issquare(y^2+z^2+2*t, &x) && x<=y), 0))); \\ From A051585 by Charles R Greathouse IV
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Data section extended up to a(120) by Antti Karttunen, Aug 23 2019
STATUS
approved