The orchard-planting problem (also known as the orchard problem or tree-planting problem) asks for the maximum number of straight lines containing
exactly
of
distinct points in the plane.
Equivalently, the points represent trees and the lines
represent rows, with positive integers
. The problem for
is attributed to Sylvester (Croft et al. 1991, p. 159).
Here "orchard" refers to the arrangement of trees into rows. For visible points, orchard imagery instead refers to a fixed point lattice and unobstructed line segments between lattice points.
The following table gives values and bounds for , based on Friedman's compilation. Du (2009, 2019)
reported
from a computer search. A collaborative computer search established
(Du 2019). Improved upper bounds for
are derived below.
| 3 | 4 | 5 | |
| OEIS | A003035 | A006065 | A008997 |
| 3 | 1 | -- | -- |
| 4 | 1 | 1 | -- |
| 5 | 2 | 1 | 1 |
| 6 | 4 | 1 | 1 |
| 7 | 6 | 2 | 1 |
| 8 | 7 | 2 | 1 |
| 9 | 10 | 3 | 2 |
| 10 | 12 | 5 | 2 |
| 11 | 16 | 6 | 2 |
| 12 | 19 | 7 | 3 |
| 13 | 9 | 3 | |
| 14 | 10 | 4 | |
| 15 | 12 | ||
| 16 | 37 | 15 | |
| 17 | 16 | ||
| 18 | 18 | ||
| 19 | 20 | ||
| 20 | 23 | ||
| 21 | |||
| 22 | |||
| 23 | |||
| 24 | |||
| 25 |
Interval entries give lower and upper bounds.
Sylvester showed that
|
(1)
|
where
is the floor function (Ball and Coxeter 1987).
Burr et al. (1974) have shown using cubic curves
that
|
(2)
|
Known sporadic constructions for ,
11, 16, and 19 have 6, 16, 37, and 52 three-point lines,
respectively, compared with 5, 15, 35, and 51 from the right-hand side of the preceding
bound (Pegg 2018). At least these four sporadic values are therefore known, while
the existence of any others remains open.
Green and Tao (2013) proved that the preceding bound is exact for all sufficiently large . In other words,
for all sufficiently large
. For
,
the general upper bound is
|
(3)
|
where
is the ceiling function.
For the four-point problem, let count the lines containing exactly
of the
points. If the points are not all
collinear, Melchior's inequality
gives
(Green and Tao 2013). Each pair of points lies on exactly
one line, so
.
The contributions from
and
alone give
.
If all the points are collinear,
then
for
. Thus for
,
|
(4)
|
The value
also gives
. If 21 points
determine at least 29 four-point lines, choose 29 of these
lines. They give
incidences, so some point
lies on at most five of the chosen lines. Deleting it leaves
20 points on at least 24 four-point lines,
contradicting
.
For , adding the center to the standard Grünbaum-Rigby
configuration (Grünbaum and Rigby 1990) turns its seven three-point lines
through the center into four-point lines, giving 28 in all.
The figure shows five distinct incidence patterns for 19 points on 20 four-point lines, compiled by E. Pegg, Jr. (pers.
comm., Nov. 8, 2026). The first can be realized with rational Cartesian coordinates. In each of the other
four, the incidences force a cross ratio that generates
a number field. A cross
ratio is invariant under projective collineations
and can be computed in any field over which the pattern
is realized. The labels use the golden ratio
and the plastic constant
. The smallest coordinate field
is
for the panel labeled
and
for the three numbered panels labeled
. These five examples attain the reported optimum.
The catalog is not exhaustive.
For the five-point problem, Pegg (2026) gives a 22-point configuration with rational Cartesian coordinates. It consists of nine
points on each side of the -axis, paired by reflection,
and four on the axis. Enumerating the distinct lines through
pairs of points gives exactly 14 lines containing five points, so
. The figure shows these 14 lines.