what is the difference between sum of first n primes and prime(prime(n?

Find the difference between the sum of the first 1000000 positive even numbers and the sum of the first 1000000 positive odd numbers?

  • Answer:

    The sum of the first 1,000,000 positive even numbers is: 2 + 4 + 6 + 8 + ... + 2,000,000 The sum of the first 1,000,000 positive odd integers is: 1 + 3 + 5 + 7 + ... + 1,999,999 The difference between the two is: (2-1) + (4-3) + (6-5) + (8-7) + ... + (2,000,000-1,999,999). This is the same as: 1 + 1 + 1 + 1 + ... + 1. Well how many 1's are there? 1,000,000. So the difference is 1,000,000. Note that if the question asked for the difference between the sum of the first 1,000 positive even numbers and the sum of the first 1,000 positive odd numbers, the answer would be 1,000. The first n even numbers and odd numbers? n.

wiki.answers.com Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.