Wolfram Researchfunctions.wolfram.comOther Wolfram Sites
Search Site
Function CategoriesGraphics GalleryNotationsGeneral IdentitiesAbout This Site Email Comments

View Related Information In
The Documentation Center
MathWorld

Download All Formulas For This Function
Mathematica Notebook
PDF File

Download All Introductions For This Function
Mathematica Notebook
PDF File

 

Developed with Mathematica -- Download a Free Trial Version
 











variants of this functions
HarmonicNumber






Mathematica Notation

Traditional Notation









Gamma, Beta, Erf > HarmonicNumber[z] > Specific values > Specialized values





http://functions.wolfram.com/06.16.03.0013.01









  


  










Input Form





HarmonicNumber[p/q - n] == q Sum[1/(q (k + 1) - p), {k, 0, n - 2}] + 2 Sum[Cos[(2 Pi p k)/q] Log[Sin[(Pi k)/q]], {k, 1, Floor[(q - 1)/2]}] - (Pi/2) Cot[(Pi p)/q] - Log[2 q] /; Element[n, Integers] && n > 0 && Element[p, Integers] && p > 0 && Element[q, Integers] && q > 0 && p < q










Standard Form





Cell[BoxData[RowBox[List[RowBox[List[RowBox[List["HarmonicNumber", "[", RowBox[List[FractionBox["p", "q"], "-", "n"]], "]"]], "\[Equal]", RowBox[List[RowBox[List["q", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List["n", "-", "2"]]], FractionBox["1", RowBox[List[RowBox[List["q", " ", RowBox[List["(", RowBox[List["k", "+", "1"]], ")"]]]], "-", "p"]]]]]]], "+", RowBox[List["2", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox[RowBox[List["q", "-", "1"]], "2"], "]"]]], RowBox[List[RowBox[List["Cos", "[", FractionBox[RowBox[List["2", "\[Pi]", " ", "p", " ", "k"]], "q"], "]"]], RowBox[List["Log", "[", RowBox[List["Sin", "[", FractionBox[RowBox[List["\[Pi]", " ", "k"]], "q"], "]"]], "]"]]]]]]]], "-", RowBox[List[FractionBox[RowBox[List["\[Pi]", " "]], RowBox[List["2", " "]]], RowBox[List["Cot", "[", FractionBox[RowBox[List["\[Pi]", " ", "p"]], "q"], "]"]]]], "-", RowBox[List["Log", "[", RowBox[List["2", "q"]], "]"]]]]]], "/;", RowBox[List[RowBox[List["n", "\[Element]", "Integers"]], "\[And]", RowBox[List["n", ">", "0"]], "\[And]", RowBox[List["p", "\[Element]", "Integers"]], "\[And]", RowBox[List["p", ">", "0"]], "\[And]", RowBox[List["q", "\[Element]", "Integers"]], "\[And]", RowBox[List["q", ">", "0"]], "\[And]", RowBox[List["p", "<", "q"]]]]]]]]










MathML Form







<math xmlns='http://www.w3.org/1998/Math/MathML' mathematica:form='TraditionalForm' xmlns:mathematica='http://www.wolfram.com/XML/'> <semantics> <mrow> <mrow> <msub> <semantics> <mi> H </mi> <annotation-xml encoding='MathML-Content'> <ci> HarmonicNumber </ci> </annotation-xml> </semantics> <mrow> <mfrac> <mi> p </mi> <mi> q </mi> </mfrac> <mo> - </mo> <mi> n </mi> </mrow> </msub> <mo> &#10869; </mo> <mrow> <mrow> <mi> q </mi> <mo> &#8290; </mo> <mrow> <munderover> <mo> &#8721; </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 0 </mn> </mrow> <mrow> <mi> n </mi> <mo> - </mo> <mn> 2 </mn> </mrow> </munderover> <mfrac> <mn> 1 </mn> <mrow> <mrow> <mi> q </mi> <mo> &#8290; </mo> <mrow> <mo> ( </mo> <mrow> <mi> k </mi> <mo> + </mo> <mn> 1 </mn> </mrow> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mi> p </mi> </mrow> </mfrac> </mrow> </mrow> <mo> + </mo> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mrow> <munderover> <mo> &#8721; </mo> <mrow> <mi> k </mi> <mo> = </mo> <mn> 1 </mn> </mrow> <mrow> <mo> &#8970; </mo> <mfrac> <mrow> <mi> q </mi> <mo> - </mo> <mn> 1 </mn> </mrow> <mn> 2 </mn> </mfrac> <mo> &#8971; </mo> </mrow> </munderover> <mrow> <mrow> <mi> cos </mi> <mo> &#8289; </mo> <mo> ( </mo> <mfrac> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mi> &#960; </mi> <mo> &#8290; </mo> <mi> p </mi> <mo> &#8290; </mo> <mi> k </mi> </mrow> <mi> q </mi> </mfrac> <mo> ) </mo> </mrow> <mo> &#8290; </mo> <mrow> <mi> log </mi> <mo> &#8289; </mo> <mo> ( </mo> <mrow> <mi> sin </mi> <mo> &#8289; </mo> <mo> ( </mo> <mfrac> <mrow> <mi> &#960; </mi> <mo> &#8290; </mo> <mi> k </mi> </mrow> <mi> q </mi> </mfrac> <mo> ) </mo> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> </mrow> <mo> - </mo> <mrow> <mfrac> <mi> &#960; </mi> <mn> 2 </mn> </mfrac> <mo> &#8290; </mo> <mrow> <mi> cot </mi> <mo> &#8289; </mo> <mo> ( </mo> <mfrac> <mrow> <mi> &#960; </mi> <mo> &#8290; </mo> <mi> p </mi> </mrow> <mi> q </mi> </mfrac> <mo> ) </mo> </mrow> </mrow> <mo> - </mo> <mrow> <mi> log </mi> <mo> &#8289; </mo> <mo> ( </mo> <mrow> <mn> 2 </mn> <mo> &#8290; </mo> <mi> q </mi> </mrow> <mo> ) </mo> </mrow> </mrow> </mrow> <mo> /; </mo> <mrow> <mrow> <mi> n </mi> <mo> &#8712; </mo> <msup> <mi> &#8469; </mi> <mo> + </mo> </msup> </mrow> <mo> &#8743; </mo> <mrow> <mi> p </mi> <mo> &#8712; </mo> <msup> <mi> &#8469; </mi> <mo> + </mo> </msup> </mrow> <mo> &#8743; </mo> <mrow> <mi> q </mi> <mo> &#8712; </mo> <semantics> <msup> <mi> &#8469; </mi> <mo> + </mo> </msup> <annotation encoding='Mathematica'> TagBox[SuperscriptBox[&quot;\[DoubleStruckCapitalN]&quot;, &quot;+&quot;], Function[Integers]] </annotation> </semantics> </mrow> <mo> &#8743; </mo> <mrow> <mi> p </mi> <mo> &lt; </mo> <mi> q </mi> </mrow> </mrow> </mrow> <annotation-xml encoding='MathML-Content'> <apply> <ci> Condition </ci> <apply> <eq /> <apply> <ci> HarmonicNumber </ci> <apply> <plus /> <apply> <times /> <ci> p </ci> <apply> <power /> <ci> q </ci> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <ci> n </ci> </apply> </apply> </apply> <apply> <plus /> <apply> <times /> <ci> q </ci> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 0 </cn> </lowlimit> <uplimit> <apply> <plus /> <ci> n </ci> <cn type='integer'> -2 </cn> </apply> </uplimit> <apply> <times /> <cn type='integer'> 1 </cn> <apply> <power /> <apply> <plus /> <apply> <times /> <ci> q </ci> <apply> <plus /> <ci> k </ci> <cn type='integer'> 1 </cn> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <ci> p </ci> </apply> </apply> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> 2 </cn> <apply> <sum /> <bvar> <ci> k </ci> </bvar> <lowlimit> <cn type='integer'> 1 </cn> </lowlimit> <uplimit> <apply> <floor /> <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> </apply> </uplimit> <apply> <times /> <apply> <cos /> <apply> <times /> <cn type='integer'> 2 </cn> <pi /> <ci> p </ci> <ci> k </ci> <apply> <power /> <ci> q </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> <apply> <ln /> <apply> <sin /> <apply> <times /> <pi /> <ci> k </ci> <apply> <power /> <ci> q </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <times /> <apply> <times /> <pi /> <apply> <power /> <cn type='integer'> 2 </cn> <cn type='integer'> -1 </cn> </apply> </apply> <apply> <cot /> <apply> <times /> <pi /> <ci> p </ci> <apply> <power /> <ci> q </ci> <cn type='integer'> -1 </cn> </apply> </apply> </apply> </apply> </apply> <apply> <times /> <cn type='integer'> -1 </cn> <apply> <ln /> <apply> <times /> <cn type='integer'> 2 </cn> <ci> q </ci> </apply> </apply> </apply> </apply> </apply> <apply> <and /> <apply> <in /> <ci> n </ci> <apply> <ci> SuperPlus </ci> <ci> &#8469; </ci> </apply> </apply> <apply> <in /> <ci> p </ci> <apply> <ci> SuperPlus </ci> <ci> &#8469; </ci> </apply> </apply> <apply> <in /> <ci> q </ci> <integers /> </apply> <apply> <lt /> <ci> p </ci> <ci> q </ci> </apply> </apply> </apply> </annotation-xml> </semantics> </math>










Rule Form





Cell[BoxData[RowBox[List[RowBox[List["HoldPattern", "[", RowBox[List["HarmonicNumber", "[", RowBox[List[FractionBox["p_", "q_"], "-", "n_"]], "]"]], "]"]], "\[RuleDelayed]", RowBox[List[RowBox[List[RowBox[List["q", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "0"]], RowBox[List["n", "-", "2"]]], FractionBox["1", RowBox[List[RowBox[List["q", " ", RowBox[List["(", RowBox[List["k", "+", "1"]], ")"]]]], "-", "p"]]]]]]], "+", RowBox[List["2", " ", RowBox[List[UnderoverscriptBox["\[Sum]", RowBox[List["k", "=", "1"]], RowBox[List["Floor", "[", FractionBox[RowBox[List["q", "-", "1"]], "2"], "]"]]], RowBox[List[RowBox[List["Cos", "[", FractionBox[RowBox[List["2", " ", "\[Pi]", " ", "p", " ", "k"]], "q"], "]"]], " ", RowBox[List["Log", "[", RowBox[List["Sin", "[", FractionBox[RowBox[List["\[Pi]", " ", "k"]], "q"], "]"]], "]"]]]]]]]], "-", RowBox[List[FractionBox["1", "2"], " ", "\[Pi]", " ", RowBox[List["Cot", "[", FractionBox[RowBox[List["\[Pi]", " ", "p"]], "q"], "]"]]]], "-", RowBox[List["Log", "[", RowBox[List["2", " ", "q"]], "]"]]]], "/;", RowBox[List[RowBox[List["n", "\[Element]", "Integers"]], "&&", RowBox[List["n", ">", "0"]], "&&", RowBox[List["p", "\[Element]", "Integers"]], "&&", RowBox[List["p", ">", "0"]], "&&", RowBox[List["q", "\[Element]", "Integers"]], "&&", RowBox[List["q", ">", "0"]], "&&", RowBox[List["p", "<", "q"]]]]]]]]]]










Date Added to functions.wolfram.com (modification date)





2001-10-29