|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/04.06.16.0013.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Mod[k m, n] == k Mod[m, n] - n Sum[j UnitStep[m/n - Quotient[m, n] - j/k]
(1 - UnitStep[m/n - Quotient[m, n] - (j + 1)/k]), {j, 0, k - 1}] /;
Element[k, Integers] && k >= 0 && Element[m/n, Reals]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["Mod", "[", RowBox[List[RowBox[List["k", " ", "m"]], ",", "n"]], "]"]], "\[Equal]", RowBox[List[RowBox[List["k", " ", RowBox[List["Mod", "[", RowBox[List["m", ",", "n"]], "]"]]]], "-", RowBox[List["n", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "0"]], RowBox[List["k", "-", "1"]]], RowBox[List["j", " ", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["m", "n"], "-", RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "-", FractionBox["j", "k"]]], "]"]], " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["m", "n"], "-", RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "-", FractionBox[RowBox[List["j", "+", "1"]], "k"]]], "]"]]]], ")"]]]]]]]]]]]], "/;", RowBox[List[RowBox[List["k", "\[Element]", "Integers"]], "&&", RowBox[List["k", "\[GreaterEqual]", "0"]], "&&", RowBox[List[FractionBox["m", "n"], "\[Element]", "Reals"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <semantics> <mrow> <mrow> <mo> ( </mo> <mrow> <mi> k </mi> <mo> ⁢ </mo> <mi> m </mi> </mrow> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mi> mod </mi> <mo> ⁢ </mo> <mi> n </mi> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <rem /> <apply> <times /> <ci> $CellContext`k </ci> <ci> $CellContext`m </ci> </apply> <ci> $CellContext`n </ci> </apply> </annotation-xml> </semantics> <mo> ⩵ </mo> <mrow> <mrow> <mi> k </mi> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <semantics> <mrow> <mi> m </mi> <mo> ⁢ </mo> <mi> mod </mi> <mo> ⁢ </mo> <mi> n </mi> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <rem /> <ci> $CellContext`m </ci> <ci> $CellContext`n </ci> </apply> </annotation-xml> </semantics> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mrow> <mi> n </mi> <mo> ⁢ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> j </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <mi> k </mi> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <mrow> <mi> j </mi> <mo> ⁢ </mo> <mrow> <semantics> <mi> θ </mi> <annotation-xml encoding='MathML-Content'> <ci> UnitStep </ci> </annotation-xml> </semantics> <mo> ( </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mi> j </mi> <mi> k </mi> </mfrac> <mo> - </mo> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mn> 1 </mn> <mo> - </mo> <mrow> <semantics> <mi> θ </mi> <annotation-xml encoding='MathML-Content'> <ci> UnitStep </ci> </annotation-xml> </semantics> <mo> ( </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> - </mo> <mfrac> <mrow> <mi> j </mi> <mo> + </mo> <mn> 1 </mn> </mrow> <mi> k </mi> </mfrac> <mo> - </mo> <mrow> <mi> quotient </mi> <mo> ⁡ </mo> <mo> ( </mo> <mrow> <mi> m </mi> <mo> , </mo> <mi> n </mi> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> </mrow> </mrow> <mo> /; </mo> <mrow> <mrow> <mi> k </mi> <mo> ∈ </mo> <semantics> <mi> ℕ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalN]", Function[Integers]] </annotation> </semantics> </mrow> <mo> ∧ </mo> <mrow> <mfrac> <mi> m </mi> <mi> n </mi> </mfrac> <mo> ∈ </mo> <semantics> <mi> ℝ </mi> <annotation encoding='Mathematica'> TagBox["\[DoubleStruckCapitalR]", Function[Reals]] </annotation> </semantics> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <ci> Condition </ci> <apply> <eq /> <apply> <rem /> <apply> <times /> <ci> $CellContext`k </ci> <ci> $CellContext`m </ci> </apply> <ci> $CellContext`n </ci> </apply> <apply> <plus /> <apply> <times /> <ci> k </ci> <apply> <rem /> <ci> $CellContext`m </ci> <ci> $CellContext`n </ci> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <ci> n </ci> <apply> <sum /> <bvar> <ci> j </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <times /> <ci> j </ci> <apply> <ci> UnitStep </ci> <apply> <plus /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <ci> j </ci> <apply> <power /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <ci> quotient </ci> <ci> m </ci> <ci> n </ci> </apply> </apply> </apply> </apply> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <ci> UnitStep </ci> <apply> <plus /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <plus /> <ci> j </ci> <cn type='integer'> 1 </cn> </apply> <apply> <power /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <ci> quotient </ci> <ci> m </ci> <ci> n </ci> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <and /> <apply> <in /> <ci> k </ci> <integers /> </apply> <apply> <in /> <apply> <times /> <ci> m </ci> <apply> <power /> <ci> n </ci> <cn type='integer'> -1 </cn> </apply> </apply> <reals /> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["Mod", "[", RowBox[List[RowBox[List["k_", " ", "m_"]], ",", "n_"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[RowBox[List["k", " ", RowBox[List["Mod", "[", RowBox[List["m", ",", "n"]], "]"]]]], "-", RowBox[List["n", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "0"]], RowBox[List["k", "-", "1"]]], RowBox[List["j", " ", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["m", "n"], "-", RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "-", FractionBox["j", "k"]]], "]"]], " ", RowBox[List["(", RowBox[List["1", "-", RowBox[List["UnitStep", "[", RowBox[List[FractionBox["m", "n"], "-", RowBox[List["Quotient", "[", RowBox[List["m", ",", "n"]], "]"]], "-", FractionBox[RowBox[List["j", "+", "1"]], "k"]]], "]"]]]], ")"]]]]]]]]]], "/;", RowBox[List[RowBox[List["k", "\[Element]", "Integers"]], "&&", RowBox[List["k", "\[GreaterEqual]", "0"]], "&&", RowBox[List[FractionBox["m", "n"], "\[Element]", "Reals"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|