By the way, the sum of the arithmetic series is n^2.
The sum of the geometric series is n^2*(n^(2n) - 1)/(n^2 - 1)
Thus the total is n^2*(1 + (n^(2n) - 1)/(n^2 - 1))
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 15
Thread: logical problem, need help...Threaded View
|
Click Here to Expand Forum to Full Width |