OFFSET
3,1
LINKS
Giovanni Resta, Table of n, a(n) for n = 3..1000
EXAMPLE
a(8) = 5 because (8,5,5) is Heronian triangle, and there are no such triangles with one side equal to 8 and another equal to 1, 2, 3 or 4.
MATHEMATICA
area[a_, b_, c_] := Block[{p=(a+b+c)/2}, Sqrt[p*(p-a)*(p-b)*(p-c)]]; a[n_] := Catch@ Block[{b = 0, c}, While[True, b++; Do[If[ IntegerQ[area[n, b, c]], Throw@b], {c, Max[Abs[n-b] + 1, b], n+b-1}]]] /; n > 2; a/@ Range[3, 50]
CROSSREFS
KEYWORD
nonn
AUTHOR
Giovanni Resta, Feb 25 2014
STATUS
approved