OFFSET
1,2
COMMENTS
These are the values within the irreducible square roots, which are part of the area resulting from Heronian triangles, which have all sides being sequential prime numbers. The triangles follow this sequence of sides: {prime(n), prime(n+1), prime(n+2)} and their area is represented by {(r/s)*sqrt(t)}, where r, s, t are integers and a(n) is the number t.
LINKS
Claudio Chaib, Squared area (squarefree): Triangles (OEIS-A334176 odd/A334177 prime), Wolfram Community.
Wikipedia, Heron's formula
EXAMPLE
a(1) = 0, since the triangle {2,3,5} has area 0. a(2) = 3, because the first possible Heronian triangle with sequential prime sides and positive area is the triangle {3,5,7} and its respective area is {15*sqrt(3)/4}. a(3) = 299 since the second possible triangle is {5,7,11} which has area {3*sqrt(299)/4}. And so on.
MATHEMATICA
a[n_]:=Module[{y, z}, If[n==1, 0, z=Area@SSSTriangle[Prime[n], Prime[n+1], Prime[n+2]]; ({z}/.Coefficient[{z}/.Sqrt[_]->y, y][[1]]->1)[[1]]^2]]
PROG
(PARI) a(n) = my(p=prime(n), q=nextprime(p+1), r=nextprime(q+1), s=(p+q+r)/2); core(numerator(s*(s-p)*(s-q)*(s-r))); \\ Michel Marcus, Apr 18 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Claudio Lobo Chaib Filho, Apr 17 2020
STATUS
approved