Sum some numbers

The sum of some consecutive positive integers is 164. What is the smallest of these consecutive numbers?


The answer is 17.

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.

1 solution

Geoff Pilling
Jan 5, 2017

Suppose n n is the smallest number.

Then n + ( n + 1 ) + ( n + 2 ) + . . . . = 164 n + (n+1) + (n+2) + .... = 164

Rewritten, where m m is the number of digits in the series:

m n + ( 1 + 2 + . . . + ( m 1 ) ) = 164 mn + (1+2+...+(m-1)) = 164

m n + m ( m 1 ) / 2 = 164 mn + m(m-1)/2 = 164

n = 164 m ( m 1 ) 2 m n = \frac{164 - \frac{m(m-1)}{2}}{m}

n = 164 m m 1 2 n = \frac{164}{m} - \frac{m-1}{2}

We only have to consider m = 2 m = 2 to 18 18 since larger values will lead to a negative value for n n . And m m can't equal 1 1 since the problem asks for "integers".

If m m is odd, then the right side of the equation m 1 2 \frac{m-1}{2} will be an integer, however 164 164 doesn't divide evenly by any odd number in the range. ( 41 > 18 41 > 18 so 41 41 is out of the range) in order for the left side to also be an integer.

Therefore, m m must be an even number between 2 2 and 18 18 , so the second term will be an integer + 0.5 + 0.5 .

So, the first term needs to also be an integer + 0.5 + 0.5 . This implies that m m can't have any prime factors other than 2 2 .

That leaves 2 , 4 , 8 , 2,4,8, and 16 16 . Of these, only 8 8 gives us the required integer + 0.5 + 0.5 for the first term.

The only numbers for which n n is a positive integer are 164 164 when m = 1 m=1 and 17 17 when m = 8 m=8 .

Therefore, since the problem states "integers" then n = 17 n = 17 .

Thanks for posting a solution. This is very similar to an approach I took, but how do you kow that the only viable values for m m are 1 and 8?

huw mort - 4 years, 5 months ago

Log in to reply

Good point... I've updated my solution with a description.

Does it look OK?

Geoff Pilling - 4 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...