Wolfram Researchfunctions.wolfram.comOther Wolfram Sites
Search Site
Function CategoriesGraphics GalleryNotationsGeneral IdentitiesAbout This Site ContributeEmail CommentsSign the Guestbook

View Related Information In
The Documentation Center
MathWorld

Download All Formulas For This Function
Mathematica Notebook
PDF File

Download All Introductions For This Function
Mathematica Notebook
PDF File

 

Developed with Mathematica -- Download a Free Trial Version
 











GCD






Mathematica Notation

Traditional Notation









Integer Functions > GCD[n1,n2,...,nm] > Series representations > Generalized power series





http://functions.wolfram.com/04.08.06.0002.01









  


  










Input Form





GCD[m, n] == 1 - 2 Floor[m/2] Floor[n/2] - KroneckerDelta[m/2 - Floor[m/2]] KroneckerDelta[n/2 - Floor[n/2]] + 2 Sum[Floor[(k n)/m], {k, 1, Floor[m/2]}] + 2 Sum[Floor[(k m)/n], {k, 1, Floor[n/2]}]










Standard Form





Cell[BoxData[RowBox[List[RowBox[List["GCD", "[", RowBox[List["m", ",", "n"]], "]"]], "\[Equal]", RowBox[List["1", "-", RowBox[List["2", " ", RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]], " ", RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]]], "-", RowBox[List[RowBox[List["KroneckerDelta", "[", RowBox[List[FractionBox["m", "2"], "-", RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]]]], "]"]], RowBox[List["KroneckerDelta", "[", RowBox[List[FractionBox["n", "2"], "-", RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]]], "]"]]]], "+", RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "n"]], "m"], "]"]]]]]], "+", RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "m"]], "n"], "]"]]]]]]]]]]]]










MathML Form







<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mi> gcd </mi> <mo> &#8289; </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> &#10869; </mo> <mrow> <mn> 1 </mn> <mo> - </mo> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mrow> <mo> &#8970; </mo> <mfrac> <mi> m </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> <mo> &#8290; </mo> <mrow> <mo> &#8970; </mo> <mfrac> <mi> n </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </mrow> <mo> - </mo> <mrow> <msub> <semantics> <mi> &#948; </mi> <annotation-xml encoding='MathML-Content'> <ci> KroneckerDelta </ci> </annotation-xml> </semantics> <mrow> <mfrac> <mi> m </mi> <mn> 2 </mn> </mfrac> <mo> - </mo> <mrow> <mo> &#8970; </mo> <mfrac> <mi> m </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </mrow> </msub> <mo> &#8290; </mo> <msub> <semantics> <mi> &#948; </mi> <annotation-xml encoding='MathML-Content'> <ci> KroneckerDelta </ci> </annotation-xml> </semantics> <mrow> <mfrac> <mi> n </mi> <mn> 2 </mn> </mfrac> <mo> - </mo> <mrow> <mo> &#8970; </mo> <mfrac> <mi> n </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </mrow> </msub> </mrow> <mo> + </mo> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mrow> <munderover> <mo> &#8721; </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mrow> <mo> &#8970; </mo> <mfrac> <mi> m </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </munderover> <mrow> <mo> &#8970; </mo> <mfrac> <mrow> <mi> k </mi> <mo> &#8290; </mo> <mi> n </mi> </mrow> <mi> m </mi> </mfrac> <mo> &#8971; </mo> </mrow> </mrow> </mrow> <mo> + </mo> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mrow> <munderover> <mo> &#8721; </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mrow> <mo> &#8970; </mo> <mfrac> <mi> n </mi> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </munderover> <mrow> <mo> &#8970; </mo> <mfrac> <mrow> <mi> k </mi> <mo> &#8290; </mo> <mi> m </mi> </mrow> <mi> n </mi> </mfrac> <mo> &#8971; </mo> </mrow> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <gcd /> <ci> m </ci> <ci> n </ci> </apply> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <cn type='integer'> 2 </cn> <apply> <floor /> <apply> <times /> <ci> m </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <floor /> <apply> <times /> <ci> n </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <ci> KroneckerDelta </ci> <apply> <plus /> <apply> <times /> <ci> m </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <floor /> <apply> <times /> <ci> m </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <ci> KroneckerDelta </ci> <apply> <plus /> <apply> <times /> <ci> n </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <floor /> <apply> <times /> <ci> n </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> 2 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <apply> <floor /> <apply> <times /> <ci> m </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </uplimit> <apply> <floor /> <apply> <times /> <ci> k </ci> <ci> n </ci> <apply> <power /> <ci> m </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> 2 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <apply> <floor /> <apply> <times /> <ci> n </ci> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </uplimit> <apply> <floor /> <apply> <times /> <ci> k </ci> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>










Rule Form





Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["GCD", "[", RowBox[List["m_", ",", "n_"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List["1", "-", RowBox[List["2", " ", RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]], " ", RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]]], "-", RowBox[List[RowBox[List["KroneckerDelta", "[", RowBox[List[FractionBox["m", "2"], "-", RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]]]], "]"]], " ", RowBox[List["KroneckerDelta", "[", RowBox[List[FractionBox["n", "2"], "-", RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]]], "]"]]]], "+", RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox["m", "2"], "]"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "n"]], "m"], "]"]]]]]], "+", RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox["n", "2"], "]"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "m"]], "n"], "]"]]]]]]]]]]]]










Date Added to functions.wolfram.com (modification date)





2001-10-29





© 1998- Wolfram Research, Inc.