(1) Analysis: Because it is impossible to plant trees against the wall, it belongs to the case of planting trees at two ends, and the formula is:
Number of trees = number of segments divided-1 (this is the case of planting trees on one side, and planting trees on both sides is better than planting trees on the other side)