|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/13.04.06.0013.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PrimePi[x] ==
Sum[1 + Floor[(2 - Sum[Floor[j/i] - Floor[(j - 1)/i], {i, 1, j}])/j],
{j, 2, Floor[x]}]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List["PrimePi", "[", "x", "]"]], "\[Equal]", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "2"]], RowBox[List["\[LeftFloor]", "x", "\[RightFloor]"]]], RowBox[List["(", RowBox[List["1", "+", RowBox[List["\[LeftFloor]", FractionBox[RowBox[List["2", "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], "j"], RowBox[List["(", RowBox[List[RowBox[List["\[LeftFloor]", FractionBox["j", "i"], "\[RightFloor]"]], "-", RowBox[List["\[LeftFloor]", FractionBox[RowBox[List["j", "-", "1"]], "i"], "\[RightFloor]"]]]], ")"]]]]]], "j"], "\[RightFloor]"]]]], ")"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <semantics> <mi> π </mi> <annotation encoding='Mathematica'> TagBox["\[Pi]", PrimePi] </annotation> </semantics> <mo> ( </mo> <mi> x </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> j </mi> <mo> = </mo> <mn> 2 </mn> </mrow> <mrow> <mo> ⌊ </mo> <mi> x </mi> <mo> ⌋ </mo> </mrow> </munderover> <mrow> <mo> ( </mo> <mrow> <mn> 1 </mn> <mo> + </mo> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mn> 2 </mn> <mo> - </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> i </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mi> j </mi> </munderover> <mrow> <mo> ( </mo> <mrow> <mrow> <mo> ⌊ </mo> <mfrac> <mi> j </mi> <mi> i </mi> </mfrac> <mo> ⌋ </mo> </mrow> <mo> - </mo> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mi> j </mi> <mo> - </mo> <mn> 1 </mn> </mrow> <mi> i </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mi> j </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <eq /> <apply> <ci> PrimePi </ci> <ci> x </ci> </apply> <apply> <sum /> <bvar> <ci> j </ci> </bvar> <lowlimit> <cn type='integer'> 2 </cn> </lowlimit> <uplimit> <apply> <floor /> <ci> x </ci> </apply> </uplimit> <apply> <plus /> <cn type='integer'> 1 </cn> <apply> <floor /> <apply> <times /> <apply> <plus /> <cn type='integer'> 2 </cn> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <sum /> <bvar> <ci> i </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <ci> j </ci> </uplimit> <apply> <plus /> <apply> <floor /> <apply> <times /> <ci> j </ci> <apply> <power /> <ci> i </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <floor /> <apply> <times /> <apply> <plus /> <ci> j </ci> <cn type='integer'> -1 </cn> </apply> <apply> <power /> <ci> i </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <power /> <ci> j </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["PrimePi", "[", "x_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["j", "=", "2"]], RowBox[List["Floor", "[", "x", "]"]]], RowBox[List["(", RowBox[List["1", "+", RowBox[List["Floor", "[", FractionBox[RowBox[List["2", "-", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], "j"], RowBox[List["(", RowBox[List[RowBox[List["Floor", "[", FractionBox["j", "i"], "]"]], "-", RowBox[List["Floor", "[", FractionBox[RowBox[List["j", "-", "1"]], "i"], "]"]]]], ")"]]]]]], "j"], "]"]]]], ")"]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|