ArticleslgStudy

mathematics

No-three-in-line problem

No-three-in-line problem is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand No-three-in-line problem rather than just read about it. In short: The no-three-in-line problem in discrete geometry asks how many points can be placed in the n×n grid so that no three points lie on a straight line. The problem concerns lines of all slopes, not only those aligned with the grid.

No-three-in-line problem — main illustration
No-three-in-line problem — illustration

Key takeaways

  • No-three-in-line problem belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect No-three-in-line problem to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of No-three-in-line problem from memory before moving on to harder problems.

Reference excerpt

The no-three-in-line problem in discrete geometry asks how many points can be placed in the n×n grid so that no three points lie on a straight line. The problem concerns lines of all slopes, not only those aligned with the grid. It was introduced by Henry Dudeney in 1900. Brass, Moser, and Pach call it "one of the oldest and most extensively studied geometric questions concerning lattice points". At most 2n points can be placed, because 2n+1 points in a grid would include a row of three or more points, by the pigeonhole principle. Although the problem can be solved with 2n points for every n up to 70, it is conjectured that fewer than 2n points can be placed in grids of large size. Known methods can place linearly many points in grids of arbitrary size, but the best of these methods place slightly fewer than 1.5n points, not 2n. Several related problems of finding points with no three in line, among other sets of points than grids, have also been studied. Although originating in recreational mathematics, the no-three-in-line problem has applications in graph drawing and to the Heilbronn triangle problem.

Small instances

The problem was first posed by Henry Dudeney in 1900, as a puzzle in recreational mathematics, phrased in terms of placing the 16 pawns of a chessboard onto the board so that no three are in a line. This is exactly the no-three-in-line problem, for the case n=8. In a later version of the puzzle, Dudeney modified the problem by asking for a solution in which two of the pawns are on squares d4 and e5, attacking each other in the center of the board. Many authors have published solutions to this problem for small values of n, and by 2026 it was known that 2n points could be placed on an n×n grid with no three in a line for all n up to n=70. The numbers of solutions with 2n points for small values of n, starting from n=2, are

The numbers of equivalence classes of solutions with 2n points under reflections and rotations are

Upper and lower bounds The exact number of points that can be placed, as a function of n, is not known. However, both proven and conjectured bounds limit this number to within a range proportional to n.

General placement methods

A solution of Paul Erdős, published by Roth (1951), is based on the observation that when n is a prime number, the set of n grid points (i,i2 mod n), for 0≤i<n, contains no three collinear points. When n is not prime, one can perform this construction for a p×p grid contained in the n×n grid, where p is the largest prime that is at most n. Because the gap between consecutive primes is much smaller than the primes themselves, p will always be close to n, so this method can be used to place n−o(n) points in the n×n grid with no three points collinear. Erdős' bound has been improved subsequently: Hall et al. (1975) show that, when n/2 is prime, one can obtain a solution with 3(n−2)/2 points, by placing points in multiple copies of the hyperbola xy=k (mod n/2), where k may be chosen arbitrarily as long as it is nonzero mod n/2. Again, for arbitrary n one can perform this construction for a prime near n/2 to obtain a solution with 32n−o(n) points.

Upper bound At most 2n points may be placed in a grid of any size n. For, if more points are placed, then by the pigeonhole principle some three of them would all lie on the same horizontal line of the grid. For n≤70, this trivial bound is known to be tight.

Conjectured bounds Although exactly 2n points can be placed on small grids, Guy & Kelly (1968) conjectured that for large grids, there is a significantly smaller upper bound on the number of points that can be placed. More precisely, they conjectured that the number of points that can be placed is at most a sublinear amount larger than cn, with c=2π233≈1.874. After an error in the heuristic reasoning leading to this conjecture was uncovered, Guy corrected the error and made the stronger conjecture that one cannot do more than sublinearly better than cn with c=π3≈1.814.

… excerpt ends here. Continue reading the full article.

Illustrations

No-three-in-line problem: A set of 20 points in a 10 × 10 grid, with no three points in a line
A set of 20 points in a 10 × 10 grid, with no three points in a line
No-three-in-line problem: 120 points in a 60 x 60 grid with no three in a line, and the lines through each pair of points
120 points in a 60 x 60 grid with no three in a line, and the lines through each pair of points
No-three-in-line problem: Suboptimal placement of 11 points in 12 × 12 grid, using the method of Erdős. The largest prime .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}p less than the grid size is 11; the solution places points at coordinates (i,i2 mod p) for i = 0, 1, ... p − 1. For instance, (4,5) is included because 42 is congruent to 5 mod 11.
Suboptimal placement of 11 points in 12 × 12 grid, using the method of Erdős. The largest prime .mw-parser-output .texhtml{font-family:"Nimbus Roman No9 L","Times New Roman",Times,serif;font-size:118%;line-height:1;font-variant-numeric:lining-nums tabular-nums;font-kerning:none}.mw-parser-output .texhtml .texhtml{font-size:100%}.mw-parser-output .texhtml-big{font-size:165%}.mw-parser-output .mvar{font-style:italic}@media(min-width:420px){.mw-parser-output .texhtml{white-space:nowrap}}p less than the grid size is 11; the solution places points at coordinates (i,i2 mod p) for i = 0, 1, ... p − 1. For instance, (4,5) is included because 42 is congruent to 5 mod 11.

Worked examples

Example 1 — a first encounter with No-three-in-line problem

Start with the simplest possible case. Write down what No-three-in-line problem claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to No-three-in-line problem before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about No-three-in-line problem ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of No-three-in-line problem

In research
No-three-in-line problem appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses No-three-in-line problem in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
No-three-in-line problem is common in secondary-school and first-year university syllabi. It links to neighbouring topics Combinatorics, Conjectures, Lattice points, so understanding it makes those chapters shorter.
In everyday life
Look for No-three-in-line problem outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “No-three-in-line problem” →

How to study No-three-in-line problem in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what No-three-in-line problem means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain No-three-in-line problem out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is No-three-in-line problem in simple terms?

The no-three-in-line problem in discrete geometry asks how many points can be placed in the n×n grid so that no three points lie on a straight line. The problem concerns lines of all slopes, not only those aligned with the grid.

Why does No-three-in-line problem matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study No-three-in-line problem?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on No-three-in-line problem.

Tags

  • Combinatorics
  • Conjectures
  • Lattice points
  • Mathematical problems

Keep exploring