I am looking to evaluate $\sum_{k=0}^n 1/\binom{n}{k}$ so I type:

sage: n = var('n')
sage: k = var('k')
sage: sum(1/binomial(n,k),k,0,n)
(n + 1)*2^(-n)

and that answer is wrong.

For example, with n=10 we get

sage: sum(1/binomial(10,k) for k in range(11))
1433/630

but the alleged answer of (n+1)*2^(-n) is 11/1024.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to