Six Consecutive Integers

Algebra Level 2

A teacher writes 6 consecutive integers on the blackboard.

He erases one of the integers and the sum of the remaining five integers is 2016.

What integer was erased?


The answer is 405.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

8 solutions

Paul Fournier
Apr 24, 2016

Relevant wiki: Setting Up Equations

Let the consecutive integers be n , n + 1 , n + 2 , n + 3 , n + 4 n, n+1, n+2, n+3, n+4 and n + 5 n+5

The sum of these numbers is 6 n + 15 6n+15 .

The sum of the five integers will be 5 n + 15 p 5n+15-p where p p is 0 , 1 , 2 , 3 , 4 0, 1, 2 ,3 , 4 or 5 5 .

5 n + 15 = 2016 + p 5n+15=2016+p , therefore 2016 + p 2016+p is divisible by 5 5 and thus p = 4 p=4 .

5 n + 15 = 2020 5n+15=2020

n = 401 n=401 and n + 4 = 405 n+4=405 .

Ha ha, nice question sir. BTW, nice teacher in the image :D

Abhay Tiwari - 5 years, 1 month ago

Even though I got it right, I just plugged in the different variations of consecutive integers for p. 5n+15= 2016+x+4. through trial and error. Your answer has less work and right to the point.

Robert Vasquez - 5 years, 1 month ago

Why did you add 4 to n?

Anarmaa Sharkhuu - 4 years, 11 months ago

Log in to reply

Never mind. Was very stupid question

Anarmaa Sharkhuu - 4 years, 11 months ago

The key to solve this problem is to cancell 2000 and find the 6 consecutive numbers that sum of 5 of them is 16

ahmed alaradi - 4 years, 10 months ago

Fantastic sir. I was too close but failed .

Shefat Shuvo - 4 years ago

similar solution

Oximas omar - 1 month ago

how did the p becomes 4?

Shanilee Hailee - 4 years, 5 months ago

Log in to reply

Both 5n+15 and 2016+p are divisible by 5. ( p is 0, 1, 2, 3 ,4 or 5)

2016+0, 2016+1, 2016+2, 2016+3, 2016+4, 2016+5.

Only 2016+4=2020 is divisible by 5

Paul Fournier - 4 years, 5 months ago
Arjen Vreugdenhil
Apr 25, 2016

The average of six consecutive numbers lies precisely between the third and fourth value.

Removing the first number will increase the average to be equal to the fourth value; removing the last number will decrease the average to be equal to the third value. Removing any of the other numbers will create an intermediate situation.

In this case, the average of the five remaining numbers is 2016 / 5 = 403 1 5 2016 / 5 = 403\tfrac15 .

Thus we know immediately that the third and fourth number are 403 403 and 404 404 , and the average of the original six numbers was 403 1 2 403\tfrac12 .

The missing number is therefore 6 403 1 2 2016 = 2421 2016 = 405 . 6\cdot 403\tfrac12 - 2016 = 2421 - 2016 = \boxed{405}.

yes crt one A.V

Krishna Singh - 4 years, 8 months ago

A new and indeed creative solution!

Aarabdh Tiwari - 4 years, 7 months ago

I lost the logic where you extrapolated the third and the fourth numbers to be 403 and 404 respectively. Could you please explain that?

Ryder Purista - 3 years, 5 months ago

Log in to reply

The average lies of six consecutive numbers lies between the third and fourth number in the list. The average is 403 1 5 403\tfrac15 . Therefore, 403 1 5 403\tfrac15 lies between the third and fourth number in the list. Therefore, the third and fourth numbers are 403 and 404.

Arjen Vreugdenhil - 3 years, 5 months ago

Log in to reply

(n-2)+(n-1)+(n)+(n+1)+(n+2) =5n 2016/5= 403 r 1 Giving us 2016= (401+402+403+404+405) +1 The only number in those 5 you can add one to and not have a repeat is 405. Our five numbers are 401, 402, 403, 404, 406 405 is skipped.

Brett Wiechmann - 2 years, 5 months ago

Brilliant logic! Thank you for presenting such an innovative solution.

Marina H - 3 years ago
Jon Danford
Jun 26, 2016

I dont know any fancy ways to solve this, but i still got it right by trial and error. First, I found the average of the 5 numbers by dividing 2016 by 5. (2016/5=403.2) Then I took the numbers 401, 402, 403, 404, 405, and 406 until i found 5 that sum equaled 2016. Those numbers were 401, 402, 403, 404, and 406. Therefore the number in the sequence that was missing was 405.

P.S. I made an educated guess to get that those weere the 6 consecutive numbers. I knew because of the average that 403 was either the 3rd or 4th number.

Thanks for sharing your approach, Jon. It is not necessary to always find a fancy way to solve a problem. Sometimes, guessing and checking works just fine. Your method helps solve this problem quickly, and easily so it's a good one.

I upvoted your solution (+1). I would like to see more solutions written by you. :)

Pranshu Gaba - 4 years, 11 months ago
Christian McGowan
Aug 18, 2016
  • 2000/5=400 leaves me with a simpler answer to find, so I ignored 2016 and used only the 16 at first
  • As a first trial: 1+2+3+4+5+6=21
  • 21-5=16 means 5 is our erased number
  • But we need to add back in the 400.
  • 405 was the erased number 😊
Joe Potillor
Dec 5, 2016

Yurev Carag
Feb 18, 2021

This is fundamentally the same as Paul Fournier's solution, but without much use of variables (which I should've done to save time but then I stumbled upon a bit more convoluted reasoning to arrive at the answer).

Any sum of 6 consecutive integers should leave a remainder of 3 when divided by 6. However, since 2016 is divisible by 6, the removed integer must be odd and divisible by 3 (if it's even it would be divisible by 6).

Any sum of 5 consecutive integers is divisible by 5. But since 2016 leaves a remainder of 1 when divided by 5, the sum of the first 5 written integers (before erasing) was 2015 and the sum of the last 5 (before erasing) was 2020.

Notice that for every 5 consecutive integers, the middle term is the average of the five. Therefore, the third smallest integer written by the professor 2015 5 \frac{2015}{5} = 403. Thus, the 6 integers are 401, 402, 403, 404, 405, and 406. Only 405 is odd and divisible by 3, so 405 is the erased integer.

Sunny Singh
Aug 9, 2020

Let the numbers be N-2, N-1, N, N+1, N+2, N+3

Sum = 6N+3

Now if we remove one number, we will have a sum in the form "5N+x"

2016 = 5N+1 --------------------------- (1)

So x = 1

It means the number removed is = 6N+3 - (5N+1) = N+2

From (1), we have N = 403

Hence, the number removed = N+2 = 405

I attach a code in python :) sorry but this time I felt lazy

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
for i in range(1,1200):
     sum = 0
     for j in range(i,i+6):
         sum += j
     for k in range(i,i+6):
             if (sum-k == 2016):
                 a = i
                 b = k
                 print "Starting number: ", i
                 print "Erased number: ", k
                 break

1 pending report

Vote up reports you agree with

×

Problem Loading...

Note Loading...

Set Loading...