What is the smallest number of straight lines capable of generating 4,096,769,040 segments?
Note: For a segment to count, it must be a part of one of the lines and each of its end points must also be on one of the other lines.
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.
For the number of lines needed to be as low as possible, each of them has to intersect as many lines as it can. If there are n lines, each can intersect at most n − 1 other lines. This generates n − 2 segments between adjacent intersection points on every line. There will therefore be n − 3 segments which each skip one of the intersections, n − 4 of those which skip two intersections, and so on down to finally only one segment which connects the two most distant intersections. So to count all the segments on a given line, we need to add numbers from 1 to n − 2 . This is accomplished using the formula: ( n − 1 ) × ( n − 2 ) / 2 . Since there are n lines in all, the number of segments for all of them is given by n × ( n − 1 ) × ( n − 2 ) / 2 . This needs to be equal to 4,096,769,040. So our equation is:
n × ( n − 1 ) × ( n − 2 ) = 8 , 1 9 3 , 5 3 8 , 0 8 0
This is a third degree equation, and we could try to solve it as such, but the three numbers ( n , n − 1 , and n − 2 ) are very close to each other compared to their size, so they are all close to the third root of the right side, which is equal to 2 0 1 5 . 9 9 9 8 3 ≈ 2 0 1 6 So our guess would be that the middle of the three numbers is indeed 2016, making the number of lines n = 2 0 1 7 . We can easily verify this guess by using 2017 in the equation above.