OFFSET
2,1
COMMENTS
A cevian is a line segment which joins a vertex of a triangle with a point on the opposite side (or its extension).
A nontrivial cevian is one that does not coincide with a side of the triangle.
For all n, the longest nontrivial integral cevian has length n^2.
LINKS
EXAMPLE
a(4) = 6 because for legs of length 4 there are two cevians, of length 6 and 16, that divide the base into two integral parts.
PROG
(PARI)
ceviso(n) = {
my(d, L=List());
for(k=1, n^2,
if(issquare(n^2+k^2-k, &d) && d!=n,
listput(L, d)
)
);
Vec(L)
}
vector(100, n, n++; ceviso(n)[1])
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Colin Barker, Nov 10 2015
STATUS
approved