OFFSET
1,1
COMMENTS
The edge a(n) is partitioned into q=s^2 - t^2=A088243(n)*A088296(n) and r=t(2s+t)=A088242(n)*A088299(n) by a cevian of length p. [Alternatively, (p,q,r) form a triangle with angle 2pi/3 opposite side p.] The quadruple {p,q,r,a(n)=q+r} satisfies the triangle relation: see A061281, or the simpler relation a(n)^2 = p^2 + q*r.
LINKS
Jean-François Alcover, Table of n, a(n) for n = 1..2918
F. Barnes, Deriving 60 degree triples
FORMULA
MATHEMATICA
sol[p_] := Solve[0 < t < s && s^2 + s t + t^2 == p, {s, t}, Integers];
Union[Reap[For[n = 1, n <= 10000, n++, If[PrimeQ[p = 6n + 1], an = s(s + 2t) /. sol[p][[1]]]; Sow[an]]][[2, 1]]] (* Jean-François Alcover, Mar 06 2020 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Oct 31 2003
EXTENSIONS
More terms from Ray Chandler, Nov 01 2003
STATUS
approved
