There are n points on an ellipse that connect the N points 22 and ask how many slices the ellipse can be divided into.
Clear your mind and push slowly.
First we have to think of Euler's formula: v+e-f=2
where V is the number of vertices on the graph, E is the number of edges, and F is the plane number.
The calculation can be enumerated points, from a fixed point on the diagonal (note is diagonal, not including the adjacent points of the line), it has a point on the left side, then the right side has n-2-i points. The left side is connected to point 22 on the right and can intersect i* (n-2-i) points on this diagonal line.
A fixed point can be connected with other non-adjacent points n-3 Diagonal, then a fixed point of the line will generate Sigema (i=1,n-3) (i* (n-2-i)) intersection;
Then a total of n points on an ellipse, a total of intersection formed N * Sigema (i=1,n-3) (i* (n-2-i)) intersection;
Note that these intersections will inevitably have a repeating point, and how many times will an intersection be counted? One intersection affects two diagonal lines, and a diagonal line involves a point on two ellipses, so an intersection is equivalent to 4 times.
Plus the dots on the ellipse, then v= (n * Sigema (i=1,n-3) (i* (n-2-i)))/4 + N;
In the same way you can calculate e, where there are x intersections on a diagonal, the diagonal line is divided into x+1 segments.
A fixed point can be connected with other non-adjacent points n-3 Diagonal, then a fixed point of the line will generate Sigema (i=1,n-3) (i* (n-2-i) +1) segment;
A total of n points on an ellipse, a total of n * Sigema (i=1,n-3) (i* (n-2-i) +1) line segments;
Each segment of course will also be repeated calculation, a line segment at two points of the connection, then a line segment is equivalent to 2 times.
Plus the lines of the adjacent points on the ellipse, then e= (n * Sigema (i=1,n-3) (i* (n-2-i)) +1)/2 + N;
Lose the outside of the infinite surface, and finally calculate the f-1=2+e-v;
Note that the calculation of v,e to be simplified into a formula, the person who is the circle solves is stupid ....
Then remind of the question of whether there will be precision when it comes to the power of summation, which requires a large number of questions.
"Split Circle" Uva 10213-how many Pieces of land?