Jump to content

Math!


Mujklob

Recommended Posts

  • 2 months later...
  • 2 weeks later...

Sum of numbers up to 1000 = (1/2)*1000*1001 = 500500

Sum of numbers divisible by 2 up to 1000 = 2*(1+2+...500) = 2*(1/2)*500*501 = 250500

Sum of numbers divisible by 5 up to 1000 = 5*(1+2+...200) = 5*(1/2)*200*201 = 100500

Sum of numbers divisible by both 2 and 5 up to 1000

= 10*(1+2+3+...100) = 10*(1/2)*100*101 = 50500

Required sum = 500500 - 250500 - 100500 + 50500 = 200000

Link to comment
Share on other sites

  • 7 years later...
  • 6 months later...
  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...
Please Sign In or Sign Up