Golomb rulers no distance twice
Put marks on a ruler so that every distance between two marks is different. The marks 0 1 4 9 11 measure ten distances — 1, 2, 3, 4, 5, 7, 8, 9, 10, 11 — all different (only 6 is missing), and no shorter ruler with five marks exists. Such a ruler is a Golomb ruler; the shortest one for n marks is optimal. Its length is known only up to 28 marks, the last few found by years of volunteer computing.
Puzzle: the ruler has the optimal length for your n. Click the ticks to place the marks in between. The triangle below the ruler lists every distance; repeats light up red.