|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
http://functions.wolfram.com/13.04.06.0001.01
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PrimePi[n] == -1 + Sum[Floor[Cos[Pi (((k - 1)! + 1)/k)]^2], {k, 1, n}] /;
Element[n, Integers] && n > 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["PrimePi", "[", "n", "]"]], "\[Equal]", RowBox[List[RowBox[List["-", "1"]], "+", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], "n"], RowBox[List["Floor", "[", SuperscriptBox[RowBox[List["Cos", "[", RowBox[List["\[Pi]", FractionBox[RowBox[List[RowBox[List[RowBox[List["(", RowBox[List["k", "-", "1"]], ")"]], "!"]], "+", "1"]], "k"]]], "]"]], "2"], "]"]]]]]]]], "/;", RowBox[List[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> <semantics> <mi> π </mi> <annotation encoding='Mathematica'> TagBox["\[Pi]", PrimePi] </annotation> </semantics> <mo> ( </mo> <mi> n </mi> <mo> ) </mo> </mrow> <mo> ⩵ </mo> <mrow> <mrow> <munderover> <mo> ∑ </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mi> n </mi> </munderover> <mrow> <mo> ⌊ </mo> <mrow> <msup> <mi> cos </mi> <mn> 2 </mn> </msup> <mo> ( </mo> <mfrac> <mrow> <mi> π </mi> <mo> ⁢ </mo> <mrow> <mo> ( </mo> <mrow> <mrow> <mrow> <mo> ( </mo> <mrow> <mi> k </mi> <mo> - </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> <mo> ! </mo> </mrow> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mi> k </mi> </mfrac> <mo> ) </mo> </mrow> <mo> ⌋ </mo> </mrow> </mrow> <mo> - </mo> <mn> 1 </mn> </mrow> </mrow> <mo> /; </mo> <mrow> <mi> n </mi> <mo> ∈ </mo> <msup> <mi> ℕ </mi> <mo> + </mo> </msup> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <ci> Condition </ci> <apply> <eq /> <apply> <ci> PrimePi </ci> <ci> n </ci> </apply> <apply> <plus /> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <ci> n </ci> </uplimit> <apply> <floor /> <apply> <power /> <apply> <cos /> <apply> <times /> <pi /> <apply> <plus /> <apply> <factorial /> <apply> <plus /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </apply> <cn type='integer'> 1 </cn> </apply> <apply> <power /> <ci> k </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <cn type='integer'> 2 </cn> </apply> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <in /> <ci> n </ci> <apply> <ci> SuperPlus </ci> <ci> ℕ </ci> </apply> </apply> </apply> </annotation-xml> </semantics> </math>
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
| Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["PrimePi", "[", "n_", "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[RowBox[List["-", "1"]], "+", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], "n"], RowBox[List["Floor", "[", SuperscriptBox[RowBox[List["Cos", "[", FractionBox[RowBox[List["\[Pi]", " ", RowBox[List["(", RowBox[List[RowBox[List[RowBox[List["(", RowBox[List["k", "-", "1"]], ")"]], "!"]], "+", "1"]], ")"]]]], "k"], "]"]], "2"], "]"]]]]]], "/;", RowBox[List[RowBox[List["n", "\[Element]", "Integers"]], "&&", RowBox[List["n", ">", "0"]]]]]]]]]] |
|
|
|
|
|
|
|
|
|
|
Date Added to functions.wolfram.com (modification date)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|