|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.08.03.0009.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
GCD[Sum[10^k, {k, 0, m - 1}], Sum[10^k, {k, 0, n - 1}]] ==
Sum[10^k, {k, 0, GCD[m, n] - 1}] /; Element[m, Integers] && m > 0 &&
Element[n, Integers] && n > 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["GCD", "[", RowBox[List[RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List["m", "-", "1"]]], SuperscriptBox["10", "k"]]], ",", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List["n", "-", "1"]]], SuperscriptBox["10", "k"]]]]], "]"]], "\[Equal]", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[RowBox[List["GCD", "[", RowBox[List["m", ",", "n"]], "]"]], "-", "1"]]], SuperscriptBox["10", "k"]]]]], "/;", RowBox[List[RowBox[List["m", "\[Element]", "Integers"]], "\[And]", RowBox[List["m", ">", "0"]], "\[And]", RowBox[List["n", "\[Element]", "Integers"]], "\[And]", RowBox[List["n", ">", "0"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mrow> <mi> gcd </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <mi> m </mi> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <msup> <mn> 10 </mn> <mi> k </mi> </msup> </mrow> <mo> , </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <mi> n </mi> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <msup> <mn> 10 </mn> <mi> k </mi> </msup> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <mrow> <mi> gcd </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <msup> <mn> 10 </mn> <mi> k </mi> </msup> </mrow> </mrow> <mo> /; </mo> <mrow> <mrow> <mi> m </mi> <mo> ∈ </mo> <msup> <semantics> <mi> ℕ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalN]", Function[Integers]] </annotation> </semantics> <mo> + </mo> </msup> </mrow> <mo> ∧ </mo> <mrow> <mi> n </mi> <mo> ∈ </mo> <msup> <semantics> <mi> ℕ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalN]", Function[Integers]] </annotation> </semantics> <mo> + </mo> </msup> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <ci> Condition </ci> <apply> <eq /> <apply> <gcd /> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> m </ci> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <power /> <cn type='integer'> 10 </cn> <ci> k </ci> </apply> </apply> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <power /> <cn type='integer'> 10 </cn> <ci> k </ci> </apply> </apply> </apply> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <apply> <gcd /> <ci> m </ci> <ci> n </ci> </apply> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <power /> <cn type='integer'> 10 </cn> <ci> k </ci> </apply> </apply> </apply> <apply> <and /> <apply> <in /> <ci> m </ci> <apply> <ci> SuperPlus </ci> <integers /> </apply> </apply> <apply> <in /> <ci> n </ci> <apply> <ci> SuperPlus </ci> <integers /> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["GCD", "[", RowBox[List[RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k_", "=", "0"]], RowBox[List["m_", "-", "1"]]], SuperscriptBox["10", "k_"]]], ",", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k_", "=", "0"]], RowBox[List["n_", "-", "1"]]], SuperscriptBox["10", "k_"]]]]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List[RowBox[List["GCD", "[", RowBox[List["m", ",", "n"]], "]"]], "-", "1"]]], SuperscriptBox["10", "k"]]], "/;", RowBox[List[RowBox[List["m", "\[Element]", "Integers"]], "&&", RowBox[List["m", ">", "0"]], "&&", RowBox[List["n", "\[Element]", "Integers"]], "&&", RowBox[List["n", ">", "0"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|