I have an equilateral triangle formed by the lines $y = x + 2$, $y = 2 - x$, and $x = 2$.
Given an integer $n$, I want a quick way to find a sequence $z_{0}, z_{1}, \ldots, z_{n}$ such that the regions generated by the lines $y = z_0$, $y = z_1, \ldots$ partition the triangle into equally-aread regions.
In other words, I want to find points to place on the green line (see image above) so that if I draw a line from the point on the green line to the left up until blue or red line, the area will be equal to every other segment.
Since the triangle has area $4$, I know that each region must have area $4/n$. Also, we must obviously always have $z_0 = 0$, and $z_n = 4$.
For the $n = 1$ case, we just have $z_0 = 0, z_1 = 4$, and that's it.
For the $n = 2$ case, we have $z_0 = 0, z_1 = 2, z_3 = 4$. This partitions the big triangle into two equally-aread smaller triangles.
But for $n \geq 3$, it gets more complicated. We start getting trapezoids, and maybe even pentagons.
I was wondering if someone knows some general way to partition the interval given $n$ points. I was trying to look for a pattern with no luck.
This is the solution for a circle: https://ita.skanev.com/08/04/04.html