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