Formula for the alternating sum of the first n numbers.

Click For Summary

Homework Help Overview

The discussion revolves around finding a formula for the alternating sum of the first n numbers, as well as the alternating sum of the squares of the first n numbers. The original poster provides specific examples and equations related to the sums of numbers, even numbers, and odd numbers.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants explore the concept of alternating sums and suggest examining the first few partial sums to derive a formula. There is also a mention of combining separate equations for odd and even n, which raises questions about the validity of those approaches.

Discussion Status

Some participants have offered suggestions for exploring the problem further, including looking at partial sums and considering derivatives of summation functions. However, there is no clear consensus or resolution yet regarding the formulation of a unified equation.

Contextual Notes

The original poster expresses difficulty in combining equations for odd and even n, indicating a potential gap in understanding or information. Additionally, there is no mention of constraints or specific homework rules affecting the discussion.

Why?
Messages
6
Reaction score
0

Homework Statement


The alternating sum of the first five numbers is 1-2+3-4+5=3. Find a formula for the alternating sum of the first n numbers. How about the alternating sum of the squares of the first n numbers?


Homework Equations



Sum of the first n numbers. [itex]\frac{n(n+1)}{2}[/itex]

Sum of the first n even numbers. n(n+1)

Sum of the first n odd numbers. n2

The Attempt at a Solution



Sum of the first n alternating numbers if n is odd. [itex]{(\frac{n+1}{2}})^{2}-(\frac{n-1}{2})({\frac{n-1}{2}+1})[/itex]

Sum of the first n alternating numbers if n is even. [itex]{(\frac{n}{2}})^{2}-(\frac{n}{2})({\frac{n}{2}+1})[/itex]

I cannot figure out how to combine these two equations into one that will work for both odd and even n. I have not even begun the second part of the problem.
 
Physics news on Phys.org
Maybe you should consider the first few partial sums of the alternating series and find a formula from that.
 
Why? said:

Homework Statement


The alternating sum of the first five numbers is 1-2+3-4+5=3. Find a formula for the alternating sum of the first n numbers. How about the alternating sum of the squares of the first n numbers?


Homework Equations



Sum of the first n numbers. [itex]\frac{n(n+1)}{2}[/itex]

Sum of the first n even numbers. n(n+1)

Sum of the first n odd numbers. n2

The Attempt at a Solution



Sum of the first n alternating numbers if n is odd. [itex]{(\frac{n+1}{2}})^{2}-(\frac{n-1}{2})({\frac{n-1}{2}+1})[/itex]

Sum of the first n alternating numbers if n is even. [itex]{(\frac{n}{2}})^{2}-(\frac{n}{2})({\frac{n}{2}+1})[/itex]

I cannot figure out how to combine these two equations into one that will work for both odd and even n. I have not even begun the second part of the problem.

Do you know the formula for Sn(x) = sum{x^k,j=1..n}? Have you looked at the summation for Tn(x) = x*dSn(x)/dx? Can you see how to continue from there?

RGV
 
Two excellent resposes.

(Darn, leave me nothing to say.)
 

Similar threads

Replies
5
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
1
Views
2K
Replies
10
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
Replies
10
Views
3K