A254075 Integer area A of triangles with side lengths in the commutative ring Z[sqrt(5)].
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 20, 22, 24, 25, 27, 28, 29, 30, 32, 33, 35, 36, 38, 40, 42, 44, 45, 48, 49, 50, 52, 54, 55, 57, 58, 60, 63, 64, 65, 66, 72, 75, 76, 77, 80, 81, 84, 88, 90, 95, 96, 98, 99, 100, 108, 110, 112, 114, 116
Offset: 1
Keywords
Links
- Eric Weisstein's World of Mathematics, Ring
Programs
-
Mathematica
err=1/10^10;nn=40;q=Sqrt[5];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