A253686 a(n) is the smallest integer area of the triangle having the sides in the commutative ring Z[sqrt(q)] where q = A005117(n) is a squarefree number.
6, 1, 3, 1, 6, 3, 3, 4, 3, 5, 3, 2, 6, 6, 6, 6, 3, 5, 6, 6, 6, 6, 6, 3, 6, 6, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 3, 6, 6, 4, 6, 6, 6, 6, 6, 5, 6, 6, 6, 6, 6, 6, 6, 6, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6
Offset: 1
Keywords
Examples
a(384)=5 because q = A005117(384) = 629 and the area A of the triangle (1, 26, sqrt(629)) is given by Heron's formula: A = sqrt(s*(s-1)*(s-26)*(s-sqrt(629))) where s = (1+26+sqrt(629))/2. We find A = 5.
Programs
-
Mathematica
(* take q=sqrt(2), sqrt(3), ..., A005117(k), ... successively *) err=1/10^10;nn=10;q=Sqrt[2];lst={};lst1={};Do[If[u+q*v>0,lst=Union[lst,{u+q*v}]],{u,-nn,nn},{v,-nn,nn}];n1=Length[lst];Do[a=Part[lst,i];b=Part[lst,j];c=Part[lst,k];s=(a+b+c)/2;area2=s*(s-a)*(s-b)*(s-c);If[a*b*c !=0&&N[area2]>0&&Abs[N[Sqrt[area2]]-Round[N[Sqrt[area2]]]]
Comments