A sparse ruler is a rod of integer length with a minimal number of marks so that all distances 1 to can be measured. Many lengths, such as 36, have unique rulers with a twin by subtracting marks from , as seen here:
This Demonstration has many but not all sparse rulers. Up to length 198, there are sparse rulers, with of them for length 59 alone. Many of the longest known sparse rulers for a particular number of marks are Wichmann rulers. A Wichmann ruler generator is given in the Initialization.
In a Golomb ruler, distances can be missing but none can be repeated.
In a sparse ruler, distances can be repeated but none can be missing.
In a difference set, modular distances cannot be missing or repeated.
For a minimal sparse ruler of length with marks, let the excess be . Up to length 1750 the excess is always 0 or 1.
The "show ruler" box is a toggle for "show grid" of excess to length 1750. Hover over a box to see the length, marks, and a shortened form of a sample ruler.