Double counting once

Algebra Level 2

I try to calculate the sum of the first n n positive integers:

1 + 2 + 3 + + n . 1 + 2 + 3 + \cdots + n .

But instead of adding each number only once, I've accidentally added a number twice, making the resultant sum 2018.

What number did I add twice?

1 2 3 4 5

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.

2 solutions

Ram Mohith
Nov 20, 2018

The sum of first n n natural numbers is given by n ( n + 1 ) 2 \dfrac{n(n + 1)}{2} . Assume that this is equal to 2018 2018 .

n ( n + 1 ) 2 = 2018 n 2 + n = 2018 × 2 n 2 + n 4036 = 0 n = 1 + 16145 2 ( We can exclude n = 1 16145 2 as n cannot be negative ) n = 64.03 \begin{aligned} \dfrac{n(n + 1)}{2} & = 2018 \\ n^2 + n & = 2018 \times 2 \\ n^2 + n & - 4036 = 0 \\ \implies n & = \dfrac{1 + \sqrt{16145}}{2} \qquad (\text{We can exclude }n = \dfrac{1 - \sqrt{16145}}{2}\text{ as n cannot be negative}) \\ \implies n & = 64.03 \\ \end{aligned}

  • Take n = 64 n = 64 , we will get n ( n + 1 ) 2 = 2080 \dfrac{n(n + 1)}{2} = 2080 which is more than 2018 2018 so we should not take n = 64 n = 64 .
  • Take n = 63 n = 63 , we will get n ( n + 1 ) 2 = 2016 \dfrac{n(n + 1)}{2} = 2016 which is less than 2018 2018 so we get n = 63 n = 63 .

\therefore The number which is added twice is = 2018 2016 = 2 = 2018 - 2016 = 2

Parth Sankhe
Nov 19, 2018

Let the double counted number be k k .

1 + 2 + 3 + . . . n + k 1+2+3+...n+k = 2018)

n ( n + 1 ) 2 + k = 2018 \frac {n(n+1)}{2} + k =2018

(The first term of the LHS of the above equation is called a triangular number)

The only triangular number a little less than 2018 is 2016 ( n = 63 n=63 ). Hence, the number 2 2 was counted twice.

The only triangular number a little less than 2018 is 2016

This is not true. 1, 3, 6, 10, 15 are triangular numbers too.

Pi Han Goh - 2 years, 6 months ago

Log in to reply

I meant a little less, that is, the difference between that triangular number (let it be A) and 2018 should not be more than n n , where A = n ( n 1 ) 2 \frac {n(n-1)}{2} . The only triangular number satisfying that condition is 2016.

Parth Sankhe - 2 years, 6 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...