Re: summary of {1/n}



In article <1139237115.327293.36150@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Steven Woody" <narkewoody@xxxxxxxxx> wrote:
what's the solution of summary of {1/n} ? thanks.

I'm guessing that by summary, you mean sum or summation. However,
I can't guess whether you mean the sum from n=1 to infinity or from
n=1 to some finite N. Do you want the exact formula, which is not
as useful for numerical purposes, or an asymptotic expansion, which
is not exact, but better for numerical purposes.

The complete series diverges, that is

oo
--- 1
> - = oo
--- n
n=1

The exact sum is

N
--- 1 Gamma'(N)
> - = gamma + ---------
--- n Gamma(N)
n=1

where gamma is the Euler-Mascheroni constant

<http://mathworld.wolfram.com/Euler-MascheroniConstant.html>

and Gamma is the Gamma function

<http://mathworld.wolfram.com/GammaFunction.html>

The asymptotic expansion is

N
--- 1 1 1 1 1 1 1
> - ~ log(N) + gamma + -- - ----- + ------ - ------ + ------ - ------- + ...
--- n 2N 12N^2 120N^4 252N^6 240N^8 132N^10
n=1

See <http://www.whim.org/nebula/math/harmonic.html>.

Rob Johnson <rob@xxxxxxxxxxxxxx>
take out the trash before replying
to view any ASCII art, display article in a monospaced font
.



Relevant Pages

  • Re: continuous iteration
    ... you need to add conditions for uniqueness ... Gamma function, poor tommy thinks ... but some extra care to avoid infinities is necessary ... the sum is a discrete operation ...
    (sci.math)
  • Re: Basic Statistical Mechanics Questions
    ... still admits a multiplier that makes it exact. ... The mechanical work is defined through a differential form: ... weighted sum of the form: ...
    (sci.physics.research)
  • Re: Evaluate the following limit
    ... asymptotic approximation of the sum. ... A sum is approximated by an integral. ... Since x^is monotonic increasing when x < 1/e and monotonic ... The asymptotic expansion for the integral can be derived as follows ...
    (sci.math)
  • Re: Random Variable on rationals in [0, 1]
    ... But this is not exact solution or some closed form solution. ... a clever choice of bijection between the rationals and N. In your ... find an explicit sum. ... Order the "rationals in " as 1/2, ...
    (sci.math)
  • Re: Feature suggestion: sum() ought to use a compensated summation algorithm
    ...  Your algorithm is specific to floats. ... sum() seems to be most useful for numeric types (i.e. those ... may be either exact or inexact (e.g. floating point ... compensated summation for built-in floating point types. ...
    (comp.lang.python)