(1) single line: there are only two gaps between three trees;
100 trees with an interval of 99;
1000 1 tree, 10000 intervals. .......
(2) Double row: When the number of trees is divided by 2, it becomes a single row planting problem.