First time here? Check out the FAQ!

Ask Your Question
1

Cannot compute limit of sum(log(k),k,1,n)/(n*log(n))

asked 6 years ago

wissme gravatar image

updated 6 years ago

slelievre gravatar image

Sage can compute this limit

limit(sum(log(k), k, 1, n) / (n * log(n)), n=infinity)       # 1

but not this one?

limit(sum(k*log(k), k, 1, n), n=infinity)

Same with k*(log(k))^2. Any hint?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
3

answered 6 years ago

dan_fulea gravatar image

Well, sage can compute / give a simpler formula for

sage: sum(log(k), k, 1, n)
log(factorial(n))

but cannot do something "more exactly" with

sage: sum(k*log(k), k, 1, n)
sum(k*log(k), k, 1, n)

sage: sum(k*(log(k))^2, k, 1, n)
sum(k*log(k)^2, k, 1, n)

... so we have to solve or work as humans. (For instance by taking the last term in each sum...)

sage: limit(sum(k*log(k), k, n, n), n=infinity)
+Infinity

... or by writing down the simultaneously converging integral, which diverges, so produces a ValueError.

sage: integral( k*log(k), k, 1, oo )
ValueError: Integral is divergent.
Preview: (hide)
link

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 6 years ago

Seen: 2,609 times

Last updated: Nov 26 '18