1. If you plant at one end and don't plant at the other end, take away the part that you don't plant at the other end, which is also "planting at both ends".
2. Don't plant at both ends. If you take a section from each end, you will plant both ends.
3. In closed routes such as circle, square and rectangle, the head and tail overlap, and the remaining half circle is taken out in the middle, which is equivalent to "planting at both ends". If trees are planted at both ends, it will be more than the interval 1 tree.
Formula summary:
First, the problem of planting trees online can be divided into the following three situations.
1. If trees are planted at both ends of the tree planting line, the number of trees planted should be more than the number of segments to be divided 1, that is, the number of trees = the number of intervals+1.
2. If only one end of the tree planting line is planted with trees, then the number of trees is equal to the number of segments to be divided, that is, the number of trees = the number of intervals.
3. If no trees are planted at both ends of the tree planting line, the number of trees planted is less than the number of segments to be divided 1, that is, the number of trees = the number of intervals-1.
4. If trees are planted on both sides and both ends of the tree planting route, the number of trees should be more than the number of segments to be divided 1, and then multiplied by 2, that is, trees = (number of segments+1)×2.
2. Planting trees on the closed line, the number of trees is equal to the number of intervals, that is, the number of trees = the number of intervals.
Third, plant trees on the square line, if every vertex should plant trees. Then the number of trees = (number of trees per side-1) × number of edges.
The problem of planting trees on non-closed lines can be divided into the following three situations:
(1) If trees are planted at both ends of the non-closed line, then:
Plant number = number of segments+1= total length-plant spacing+1
Total length = plant spacing × (number of plants-1)
Plant spacing = total length ÷ (number of plants-1)
2 If you want to plant trees at one end of the unclosed line and not at the other end, then:
Number of plants = number of segments = total length ÷ plant spacing
Total length = plant spacing × number of plants
Plant spacing = total length/number of plants