AceTheInterview
Jobs in Pune | Work better in teams | Socialize with friends | Submit Q&A | Tell a friend
Search site for 

Top 100 Interview Questions & Answers in a convenient and easy to read book!

“I bought this guide a few days ago to prepare for my interview with Oracle. Many of the questions they asked me were from this guide. I found this book absolutely great!”

– Ravi, California

Read more comments...

Interview Questions And Answers RSS Feed

Answers »

  1. Submitted By: oliviub — October 6, 2006
    +10 votes
      + -

    In general the sum of numbers from 1 to n is given by: n*(n+1)/2

    Regards,
    Oliviu

  2. Submitted By: xianfeng — October 6, 2006
    -7 votes
      + -

    Depends what NUMBER means here:

    If means integer, that’s 100*(100+1)/2=5050;
    If not, that’s infinity.

  3. Submitted By: hottypete — October 6, 2006
    +4 votes
      + -

    Integers from 1 to 1000 = 500,500

  4. Submitted By: ucjason — October 6, 2006
    +5 votes
      + -

    sum up 1 and 999, 2 and 998 3 and 997 etc. till 499 and 501 that sum is 1000×499 + 500 + 1000 (original 1000) and total is 500,500
    Any objections? so I think hottypete is correct.

  5. Submitted By: littlerufe — October 6, 2006
    +1 votes
      + -

    xianfeng is correct, too, except he used 100 instead of 1000.

    1000 * (1000 + 1) / 2 = 500,500

    So everybody’s right!!!

  6. Submitted By: Mensan — October 6, 2006
    +8 votes
      + -

    A mathematically sound answer should be:
    1 + 1000 (= 1001)
    + 2 + 999 (= 1001)
    + 3 + 998 (= 1001)
    .
    .
    .
    + 500 + 501 (= 1001)

    = 500 * 1001 = 500500

  7. Submitted By: phil — October 6, 2006
    +7 votes
      + -

    An easier way to remember it might be “times a half, plus a half”, which is essentially what that calculation reduces to:

    (n(n+1))/2 = n*(n/2) + n/2

  8. Submitted By: Nick — May 29, 2007
    +0 votes
      + -

    Answer depends on the discreteness of the interval between the two numbers and as such can only be specified using an interval.

    For natural numbers use Gauss’s theorem.

  9. Submitted By: waseem — June 21, 2007
    +0 votes
      + -

    for any arithmetic progression

    sum=n/2*( a+l)
    where
    n= number of terms,= 1000 in this case
    a= first term, 1 in this case
    l=last term l= 1000 in this case
    after calculation it comes out to be 5050

  10. Submitted By: avinash — February 13, 2008
    +0 votes
      + -

    jus a simple techniq.sum of ‘n’ natural numbers is n(n+1)/2..n here n is 1000..so simple na

  11. Leave an Answer/Comment

    To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
    Click to hear an audio file of the anti-spam word

Our Sponsors
Our Sponsors
Contact Us | FAQ | Sitemap | Terms of Use | Privacy Policy | Tell a Friend

Copyright © 1999-2006 Jeeve Technologies LLC. All rights reserved.