Formula for the alternating sum of the first n numbers.

In summary, the conversation is about 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 equations for the sum of the first n numbers, first n even numbers, and first n odd numbers are provided, but the attempt at a solution involves finding a way to combine the equations for odd and even n. The suggestion is to consider the first few partial sums and use the formula for Sn(x) and Tn(x) to continue finding a solution. Two responses are given, both of which are helpful in solving the problem.
  • #1
Why?
6
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
  • #2
Maybe you should consider the first few partial sums of the alternating series and find a formula from that.
 
  • #3
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
 
  • #4
Two excellent resposes.

(Darn, leave me nothing to say.)
 

What is the formula for the alternating sum of the first n numbers?

The formula for the alternating sum of the first n numbers is (-1)^n * n * (n+1)/2.

How do you apply this formula to a set of numbers?

To apply this formula, you need to first find the value of n, which represents the number of terms in the set. Then, plug in this value into the formula to find the alternating sum of the first n numbers.

Can this formula be used for any set of numbers?

Yes, this formula can be used for any set of numbers, as long as n represents the number of terms in the set and the numbers in the set follow a pattern where every other number is positive and negative.

What is the purpose of finding the alternating sum of the first n numbers?

The purpose of finding the alternating sum of the first n numbers is to understand the pattern and relationship between different sets of numbers. It can also be used in various mathematical and scientific calculations.

Are there any variations to this formula?

Yes, there are a few variations to this formula depending on the specific pattern and sequence of numbers. Some may include coefficients or different exponents, but ultimately they all follow a similar pattern of alternating positive and negative terms.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
5
Views
262
  • Precalculus Mathematics Homework Help
Replies
10
Views
2K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Precalculus Mathematics Homework Help
Replies
3
Views
625
  • Precalculus Mathematics Homework Help
Replies
10
Views
960
  • Precalculus Mathematics Homework Help
Replies
1
Views
948
  • Precalculus Mathematics Homework Help
Replies
10
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
787
  • Precalculus Mathematics Homework Help
Replies
12
Views
2K
  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
Back
Top