|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.08.06.0001.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GCD[m, n] == 2 Sum[Floor[(k n)/m], {k, 1, m - 1}] + m + n - m n
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["GCD", "[", RowBox[List["m", ",", "n"]], "]"]], "\[Equal]", RowBox[List[RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["m", "-", "1"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "n"]], "m"], "]"]]]]]], "+", "m", "+", "n", "-", RowBox[List["m", " ", "n"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <mrow> <mrow> <mo> - </mo> <mi> n </mi> </mrow> <mo> ⁢ </mo> <mi> m </mi> </mrow> <mo> + </mo> <mi> m </mi> <mo> + </mo> <mi> n </mi> <mo> + </mo> <mrow> <mn> 2 </mn> <mo> ⁢ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mrow> <mi> m </mi> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mi> k </mi> <mo> ⁢ </mo> <mi> n </mi> </mrow> <mi> m </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <gcd /> <ci> m </ci> <ci> n </ci> </apply> <apply> <plus /> <apply> <times /> <apply> <times /> <cn type='integer'> -1 </cn> <ci> n </ci> </apply> <ci> m </ci> </apply> <ci> m </ci> <ci> n </ci> <apply> <times /> <cn type='integer'> 2 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> m </ci> <cn type='integer'> -1 </cn> </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> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["GCD", "[", RowBox[List["m_", ",", "n_"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["m", "-", "1"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["k", " ", "n"]], "m"], "]"]]]]]], "+", "m", "+", "n", "-", RowBox[List["m", " ", "n"]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|