Jump to content
BrainDen.com - Brain Teasers
  • 0

Sum of n consecutive integers


BMAD
 Share

Question

You may already know that 1+2+3+4+5=15. Let's try five other consecutive integers: 14+15+16+17+18=80. How about -1+0+1+2+3=5? We might guess that the sum of 5 consecutive integers is divisible by 5. That turns out to be true. Maybe the sum of n consecutive integers is divisible by n. That turns out not to be true: 1+2 is not divisible by 2.
Question: When is the sum of n consecutive integers divisible by n, and when is it not divisible by n?
Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

It certainly works if n is odd; I'm guessing it never does if n is even.

For example, 3 consecutive integers can be expressed as n-1, n, and n+1; they will always sum to 3n.

The formula for the sum of n consecutive integers is n(2A+n-1)/2 if A is the smallest of the integers. This is clearly divisible by n if and only if (2A+n-1)/2 is an integer, which is true when 2A+n-1 is an even number. This is only true when n is odd.

Edited by BMAD
Link to comment
Share on other sites

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...