HarmonicNumber
HarmonicNumber[n] gives the nth harmonic number Hn.
HarmonicNumber[n,r] gives the harmonic number Hn(r) of order r.
Examples
Compute the 10th harmonic number:
HarmonicNumber[10]
(* 7381/2520 *)Please visit the official Wolfram Language Reference for more details.