|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/13.04.06.0005.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PrimePi[n] == Sum[Floor[1/Sum[Floor[(i Floor[k/i])/k], {i, 1, k - 1}]],
{k, 2, n}] /; Element[n, Integers] && n >= 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["PrimePi", "[", "n", "]"]], "\[Equal]", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "2"]], "n"], RowBox[List["Floor", "[", FractionBox["1", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], RowBox[List["k", "-", "1"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["i", " ", RowBox[List["Floor", "[", FractionBox["k", "i"], "]"]]]], "k"], "]"]]]]], "]"]]]]]], "/;", RowBox[List[RowBox[List["n", "\[Element]", "Integers"]], "\[And]", RowBox[List["n", "\[GreaterEqual]", "0"]]]]]]]]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <mrow> <semantics> <mi> π </mi> <annotation encoding='Mathematica'> TagBox["\[Pi]", PrimePi] </annotation> </semantics> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 2 </mn> </mrow> <mi> n </mi> </munderover> <mrow> <mo> ⌊ </mo> <mfrac> <mn> 1 </mn> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> i </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mrow> <mi> k </mi> <mo> - </mo> <mn> 1 </mn> </mrow> </munderover> <mrow> <mo> ⌊ </mo> <mfrac> <mrow> <mi> i </mi> <mo> ⁢ </mo> <mrow> <mo> ⌊ </mo> <mfrac> <mi> k </mi> <mi> i </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> <mi> k </mi> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> </mfrac> <mo> ⌋ </mo> </mrow> </mrow> </mrow> <mo> /; </mo> <mrow> <mi> n </mi> <mo> ∈ </mo> <mi> ℕ </mi> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <ci> Condition </ci> <apply> <eq /> <apply> <ci> PrimePi </ci> <ci> n </ci> </apply> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 2 </cn> </lowlimit> <uplimit> <ci> n </ci> </uplimit> <apply> <floor /> <apply> <times /> <cn type='integer'> 1 </cn> <apply> <power /> <apply> <sum /> <bvar> <ci> i </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </uplimit> <apply> <floor /> <apply> <times /> <ci> i </ci> <apply> <floor /> <apply> <times /> <ci> k </ci> <apply> <power /> <ci> i </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <power /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> <apply> <in /> <ci> n </ci> <ci> ℕ </ci> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["PrimePi", "[", "n_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "2"]], "n"], RowBox[List["Floor", "[", FractionBox["1", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["i", "=", "1"]], RowBox[List["k", "-", "1"]]], RowBox[List["Floor", "[", FractionBox[RowBox[List["i", " ", RowBox[List["Floor", "[", FractionBox["k", "i"], "]"]]]], "k"], "]"]]]]], "]"]]]], "/;", RowBox[List[RowBox[List["n", "\[Element]", "Integers"]], "&&", RowBox[List["n", "\[GreaterEqual]", "0"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|