Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

I am looking to compute the value of $\sum^{3249}_{n=58} 2^{n \choose 2}$, but when I try to execute ScientificForm[Sum[2^Binomial[n, 2], {n, 58, 3249}]], I get a very large output.

Why is ScientificForm not being applied?

share|improve this question
add comment

2 Answers 2

up vote 8 down vote accepted

The result of that sum is an (exact) integer, so Mathematica will display every digit because they're all significant. To get the output you're looking for, you just have to convert the result to a floating point number using N.

ScientificForm[N@Sum[2^Binomial[n, 2], {n, 58, 3249}]]
share|improve this answer
add comment

Large Real numbers are styled in ScientificForm by default, therefore all you need is N:

N @ Sum[2^Binomial[n, 2], {n, 58, 3249}]

2.782284487984395 x 101588347

If you want to automatically display large Integer numbers in the same form you could use an assignment to $PrePrint, among other options. This does not affect the internal value of expressions.

$PrePrint = # /. i_Integer /; i > 1*^50 :> N[i] &;

s = Sum[2^Binomial[n, 2], {n, 58, 3249}]

2.782284487984395 x 101588347

Head[s]

Integer

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.