Help with sum of first n integers.

In summary, the sum of the first n integers is given by:Sum(n) = 1+2+3+4+...+n = n(n+1)/2.Find similar formulae for Odd(n) integers.Even(n)=2+4+6+8++++2n (n TERMS in the sum!)We may draw out a common factor of 2:Even(n)=2(1+2+3+++n)=2S(n) agreed?Hence, Even(n)=n(n+1).Did you follow that?(If not, please make SPECIFIC reference to the steps you have trouble with!)yeah i follow it right up until
  • #1
Phoresis
9
0
Ok, I haven't done maths for a few years now and I've been set the following question:

The sum of the first integers is given by:

Sum(n) = 1+2+3+4 ... +n = n(n+1)/2

Find similar formulae for

Even(n) = 2+4+6+8 ... +2n
Odd(n) = 1+3+5+7 ... +(2n-1)

Now the formulae I have come up with, by trial and error mind, are:

Even = n(n+2)/4
Odd = n(n)/4

Am I on the right lines here? And if so is there a mathematical way of coming up with these formuale that doesn't involve trial and error?

cheers
 
Physics news on Phys.org
  • #2
Welcome to PF!
Question:
Have you checked at all whether your formulae are correct??
What is Even(1) ?
What does your formula tell you that Even(1) should be?
 
  • #3
well my formula says even 1 should be 0.75 , but i don't understand how you can test with even 1 anyway when there aren't any even integers before 1
 
  • #4
The FIRST even, positive integer is 2.
Hence, Even(1)=2.
You are to sum the n first even integers, so n itself can perfectly well be odd..
 
  • #5
::thinking:: How is the nth element of the series of even numbers related to the nth element of the series of all integers? Then consider how is the nth element of the series of odd numbers related to the nth element of the even numbers?
 
Last edited by a moderator:
  • #6
bah now I am really confused :frown:

ok i get what you're saying Even (1) refers to the first even integer. So my formula is incorrect as the answer I should expect to get is 2. now to think up a new forumla :confused:
 
  • #7
Phoresis said:
bah now I am really confused :frown:

ok i get what you're saying Even (1) refers to the first even integer. So my formula is incorrect as the answer I should expect to get is 2. now to think up a new forumla :confused:
Let's take it easy.
The sum of the first n (even AND odd) integers S(n) is given by:
[tex]S(n)=\frac{n(n+1)}{2}[/tex]
We are to find a formula for the SUM of first n even integers, Even(n).
Written out, this is:
Even(n)=2+4+6++++2n (n TERMS in the sum!)
We may draw out a common factor of 2:
Even(n)=2(1+2+3+++n)=2S(n) agreed?
Hence, Even(n)=n(n+1)
Did you follow that?
(If not, please make SPECIFIC reference to the steps you have trouble with!)
 
Last edited:
  • #8
yeah i follow it right up until the end where i just confuse myself.

ok the formula for calculating the addition of n integers is:

n(n+1)/2

so for all the integers up to and including 10, added together, using the formula the answer is 55 which is correct.

Now from what you were saying the formula for the Even number of n integers added together is n(n+1) but how is this so if, using 10 as an example again, the answer comes to 110
 
Last edited:
  • #9
But: Even(n) is the sum of the n first even integers.
Up to and including "10" we have 5 even integers:2,4,6,8,10
The sum of these are 5*(5+1)=30.
 
  • #10
aaaah ok i feel so stupid now. right, it has clicked. thank you so much, pretty sure I will be able to figure out the formula for the odd numbers now. its always the blindingly obvious i slip up on :rofl:
 
  • #11
You're welcome..
 

1. What is the formula for finding the sum of the first n integers?

The formula for finding the sum of the first n integers is (n x (n+1)) / 2. This formula is also known as the Gauss formula.

2. How does this formula work?

This formula works by finding the average of the first and last number in the sequence of n integers, and multiplying it by the number of terms in the sequence. Since the sequence is consecutive, the average will be the middle number, and multiplying it by the number of terms will give us the sum of all the numbers in the sequence.

3. Can this formula be used for any value of n?

Yes, this formula can be used for any positive integer value of n. It is a general formula that can be applied to any sequence of consecutive numbers.

4. How is this formula useful in real life?

This formula is useful in real life when trying to find the total cost of a large group of items or the total number of people in a group. It can also be used in mathematical and scientific calculations.

5. Are there any other methods for finding the sum of the first n integers?

Yes, there are other methods such as using a calculator or manually adding all the numbers in the sequence. However, the formula (n x (n+1)) / 2 is the most efficient and accurate method for finding the sum of the first n integers.

Similar threads

  • Calculus and Beyond Homework Help
Replies
7
Views
2K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
  • Math POTW for Secondary and High School Students
Replies
14
Views
1K
  • Introductory Physics Homework Help
Replies
3
Views
132
  • Calculus and Beyond Homework Help
Replies
4
Views
809
  • Introductory Physics Homework Help
Replies
12
Views
727
  • Calculus and Beyond Homework Help
Replies
3
Views
411
  • Introductory Physics Homework Help
Replies
2
Views
779
  • Precalculus Mathematics Homework Help
Replies
6
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
12
Views
964
Back
Top