Planting trees along the road, because one tree should be planted at both ends, so the number of trees planted is more than the number of divided sections1; Planting trees along the perimeter, because the head and tail overlap together, the number of trees planted is equal to the number of segments.
The basic method to solve the problem of planting trees is:
(1) Plant trees along the road
Number of trees = total length/interval+1
Interval = total length ÷ (number of trees-1)
Total length = interval × (number of trees-1)
(2) Planting trees along the periphery
Number of trees = total length ÷ interval
Interval = total length and number of trees
Total length = interval × number of trees