Find the sum of the first 2000 positive even numbers subtracted from the sum of the first 2000 positive odd numbers.
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.
LaTeX: 2 0
Intelligible Solution: 1 0
Unqiueness: 2
Algorithmic Structure: 3
Pics: 0
Animations: 0
Total: 3 5
P.S. Can you post a solution to Day 1 , Problem 1 ?
Log in to reply
I posted a solution to Day 1, Problem 1 on July 17...
Log in to reply
Log in to reply
@Yajat Shamji – Also, is Day 2, Problem 1 correct? I got x = 10, because 10 + 10 mod (10 + 1) = 10 + 10 mod 11 = 10 + 10 = 20.
Log in to reply
@David Vreken – Add 9 to x .
Log in to reply
@Yajat Shamji – but 19 + 19 mod (19 + 1) = 19 + 19 mod 20 = 19 + 19 = 38.
Log in to reply
@David Vreken – No...
You don't need to put 1 9 into the calculation - that's your answer...
Log in to reply
@Yajat Shamji – Oh, you changed the question.
Log in to reply
@David Vreken – @Vinayak Srivastava was complaining, that's why...
Log in to reply
@Yajat Shamji – You need to accept that the problem was wrong, please don't say straight away to anyone that they were complaining. Also, even I entered 10 at first then realized there was a mistake, and reported it. Is reporting problems bad? I won't report wrong things then.
Log in to reply
@Vinayak Srivastava – That's how I put it...
Log in to reply
@Yajat Shamji – Thank you! I got my answer-I won't report any problems now, don't worry, I am deleting my report.
S even S odd S even − S odd = 2 + 4 + 6 + ⋯ + 4 0 0 0 = 1 + 3 + 5 + ⋯ + 3 9 9 9 = Number of 1s = 2 0 0 0 1 + 1 + 1 + ⋯ 1 = 2 0 0 0
Therefore the answer is 2 0 0 0 .
@Yajat Shamji , 0 is an even even number. It is the first non-negative even number. You should mention "the first 2000 positive even number" and "the first 2000 positive odd number".
Important Points ⇓
⇒ 0 is an even number
⇒ There are two parts of the problem, so we should solve this step-by-step
Find the sum of the first 2 0 0 0 even numbers subtracted from the sum of the first 2 0 0 0 odd numbers.
Let's use our logic here ⇓
We know that the first even number, 0 is 1 less than the first odd number, 1
We notice that the second even number, 2 is also 1 less than the second odd number, 3
This rule applies to all numbers, as an odd number is an even number + 1
x = F i r s t 2 0 0 0 O d d N u m b e r s − F i r s t 2 0 0 0 E v e n N u m b e r s = F i r s t 2 0 0 0 O d d N u m b e r s − ( F i r s t 2 0 0 0 O d d N u m b e r s − 2 0 0 0 ) = 2 0 0 0
@Percy Jackson , no more editing...
Log in to reply
Ok, at least I finished the algorithmic structure :)
LaTeX: 2 0
Intelligible Solution: 1 0
Uniqueness: 1 0
Algorithmic Structure: 3
Pics: 0
Animations: 0
Total: 4 3
Awarded 'BRILLIAthon Star' for Problem 4 .
Log in to reply
@Yajat Shamji - I didn't add pictures, please change my score to 43 :)
Problem Loading...
Note Loading...
Set Loading...
Both even and odd number sequences are arithmetic sequences whose terms have the equation a n = a 1 + d ( n − 1 ) and whose sums have the equation S n = 2 1 n ( a 1 + a n ) for first term a 1 and difference d .
For the first 2 0 0 0 even numbers, a 1 = 2 , d = 2 , and a 2 0 0 0 = a 1 + d ( 2 0 0 0 − 1 ) = 2 + 2 ( 2 0 0 0 − 1 ) = 4 0 0 0 , which means that its sum is S even = 2 1 n ( a 1 + a n ) = 2 1 ⋅ 2 0 0 0 ⋅ ( 2 + 4 0 0 0 ) = 4 0 0 2 0 0 0 .
For the first 2 0 0 0 odd numbers, a 1 = 1 , d = 2 , and a 2 0 0 0 = a 1 + d ( 2 0 0 0 − 1 ) = 1 + 2 ( 2 0 0 0 − 1 ) = 3 9 9 9 , which means that its sum is S odd = 2 1 n ( a 1 + a n ) = 2 1 ⋅ 2 0 0 0 ⋅ ( 1 + 3 9 9 9 ) = 4 0 0 0 0 0 0 .
Therefore, S even − S odd = 4 0 0 2 0 0 0 − 4 0 0 0 0 0 0 = 2 0 0 0 .