A set of points is generated in the following manner: is located at the origin. The point is obtained by starting at moving 1 unit in the positive direction, and units in the positive direction. Each point for a positive integer is connected to by a straight line segment with endpoints at the two points. Let the area bounded by this graph, the -axis, and the line What is the remainder when is divided by 1000?
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.
There are many ways to arrive at the answer; the one I saw at first was more complicated, but a friend of mine pointed out a more clever way to solve it. I will present both ways.
Way 1:
Draw triangles inside the shape as shown in the (very high-quality) diagram. Let's consider what would happen if we were considering the line x = 0 instead of x = 2 0 1 7 . Obviously, the answer would be 0 . For x = 1 , the answer would be 2 1 ∗ 1 . However, after that, the addition starts to get a little complicated, but in the diagram, you can see that a rectangle has area 1 + 2 + 3 + . . . + n if it is between the lines x = n and x = ( n + 1 ) . (A visual way of representing this is to move all of the triangles right so that their legs make a straight line. That line will have length 1 + 2 + 3 + . . . + n .) This sum can also be represented as ( 1 n ) . This notation makes everything a lot easier to add.
As for the triangles, they will have area 2 n (by the definition of the area of a triangle).
So we have two different shapes we're dealing with: rectangles and triangles. The sum of all the rectangles should be x = 1 ∑ 2 0 1 7 ( 2 n ) , which, by the Hockey Stick Theorem, is equal to ( 3 2 0 1 8 ) .
The area of all the triangles is x = 1 ∑ 2 0 1 7 2 n , which is equal to the half of sum of the numbers from 1 to 2017. This is equal to 2 1 ∗ ( 2 2 0 1 8 ) .
Since we want to find the last three digits of twice the area, we can go ahead and multiply by 2, then take the last three digits.
( 2 2 0 1 8 ) + 2 ( 3 2 0 1 8 ) = 2 2 0 1 8 ∗ 2 0 1 7 ∗ 6 2 ∗ 2 0 1 8 ∗ 2 0 1 7 ∗ 2 0 1 6 = 2 0 3 5 1 5 3 + 2 7 3 5 2 4 5 6 3 2 = 2 7 3 7 2 8 0 7 8 5
So the answer is 785
Way 2: This is the other (much simpler) method that I didn't see at first. Instead of finding the area of the triangles and the area of the rectangles and adding them together, we can find the areas of the trapezoids created by the gridlines on the x-axis. Let's also say we're looking at these trapezoids from the sides; they all have a height of 1.
The area of the first "trapezoid" (It's really a triangle, but I'm calling it a trapezoid for continuity's sake) is 1 ∗ 2 0 + 1 which is equal to 2 1 .
The area of the second trapezoid is 1 ∗ 2 1 + 3 which is equal to 2
The area of the third trapezoid is 1 ∗ 2 3 + 6 which is equal to 2 9 .
Something to note about these numbers is that they are half of the square numbers (See the footnote for why this happens). So we need to find the sum of the squares from 1 to 2017 (We'll just take the last 3 digits of this since we would have to divide it by 2 and then multiply it by two again).
The sum of the squares from 1 to n is given by 6 ( n ) ( n + 1 ) ( 2 n + 1 ) = 6 2 0 1 7 ∗ 2 0 1 8 ∗ 4 0 3 5 = 1 0 0 9 ∗ 2 0 1 7 ∗ 1 3 4 5 = 2 7 3 7 2 8 0 7 8 5 , so the answer is 785 .
Footnote: The values we are adding together are ( 2 n ) and ( 2 n + 1 ) . The product of these is 2 n ∗ ( n − 1 ) + 2 ( n + 1 ) ∗ n . When you simplify this fraction, you are left with just n 2 .