Efficiently Computing a Special Sum in Excel without Macros

  • Thread starter KLoux
  • Start date
  • Tags
    Sum
In summary, the conversation discusses finding a formula or method to compute the summation of 1/k^2 from 1 to n in an Excel spreadsheet without using a macro. It is mentioned that there may not be a closed-form solution for this summation, and the conversation ends with the decision to write a macro instead.
  • #1
KLoux
176
1
Hello! I am trying to find a way to compute the following in an Excel spreadsheet without the use of a macro:

[tex]\frac{1}{n^{2}}+\frac{1}{\left(n-1\right)^{2}}+\frac{1}{\left(n-2\right)^{2}}+...+1[/tex]

Can I manipulate this into some form that would make it easier to put in Excel? I'm pretty stuck and any suggestions would be much appreciated!

Thanks,

Kerry

[EDIT] Just wanted to make it clearer - My goal is to have some formula in one cell that references just one other cell to get the result.
 
Mathematics news on Phys.org
  • #2
Unfortunately, I do not believe a closed-form solution exists for the summation

S = 1/1^2 + 1/2^2 + ... + 1/n^2 = Sum of 1/k^2 from 1 to n.

The whole thing converges to 1.644934066848226436472415166646, or pi^2 / 6, as n goes to infinity.

What sort of accuracy do you need? You can always plot a range of it, and then fit a curve to it to make it look "close".
 
  • #3
Ahh, I was afraid of that. I'll just write the macro.

Thanks for your help!

-Kerry
 

FAQ: Efficiently Computing a Special Sum in Excel without Macros

How do you determine what makes a sum "special"?

A "special" sum can have different meanings depending on the context. It could refer to a specific mathematical series or sequence, a sum with certain constraints or patterns, or a sum related to a particular problem or application.

What is the process for computing a "special" sum?

The process for computing a "special" sum can vary depending on the problem at hand. In general, it involves identifying the terms of the sum, determining the pattern or sequence of the terms, and using mathematical techniques such as algebra, calculus, or series formulas to find the sum.

Are there any specific formulas or methods for computing "special" sums?

Yes, there are various formulas and methods that can be used to compute different types of "special" sums. Some common techniques include using geometric or arithmetic series formulas, telescoping sums, and the method of differences.

Can "special" sums be computed by hand or do you need a computer?

Whether a "special" sum can be computed by hand depends on the complexity of the sum and the mathematical skill of the person attempting to compute it. In some cases, a computer may be necessary to handle large or complicated sums.

What are some common applications of "special" sums in science?

"Special" sums can be found in various areas of science, including physics, biology, and statistics. For example, in physics, "special" sums may be used to calculate the total energy of a system or to determine the probability of an event occurring. In biology, "special" sums may be used to analyze genetic data or to model population growth. In statistics, "special" sums may be used to calculate probabilities or to find the mean or standard deviation of a set of data.

Similar threads

Replies
1
Views
1K
Replies
1
Views
2K
Replies
2
Views
1K
Replies
6
Views
2K
Replies
3
Views
1K
Replies
2
Views
1K
Back
Top