A perfect ruler of length
is a
ruler
A ruler, sometimes called a rule, scale, line gauge, or metre/meter stick, is an instrument used to make length measurements, whereby a length is read from a series of markings called "rules" along an edge of the device. Usually, the instr ...
with
integer
An integer is the number zero (0), a positive natural number (1, 2, 3, ...), or the negation of a positive natural number (−1, −2, −3, ...). The negations or additive inverses of the positive natural numbers are referred to as negative in ...
markings
, for which there exists an integer
such that any
positive integer
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positiv ...
is uniquely expressed as the
difference
Difference commonly refers to:
* Difference (philosophy), the set of properties by which items are distinguished
* Difference (mathematics), the result of a subtraction
Difference, The Difference, Differences or Differently may also refer to:
Mu ...
for some
. This is referred to as an
-perfect ruler.
An
optimal
Mathematical optimization (alternatively spelled ''optimisation'') or mathematical programming is the selection of a best element, with regard to some criteria, from some set of available alternatives. It is generally divided into two subfiel ...
perfect ruler is one of the smallest length for fixed values of
and
.
Example
A 4-perfect ruler of length
is given by
. To verify this, we need to show that every positive integer
is uniquely expressed as the difference of two markings:
:
:
:
:
See also
*
Golomb ruler
In mathematics, a Golomb ruler is a set (mathematics), set of marks at integer positions along a ruler such that no two pairs of marks are the same distance apart. The number of marks on the ruler is its ''order'', and the largest distance bet ...
*
Sparse ruler
A sparse ruler is a ruler in which some of the distance marks may be missing. More abstractly, a sparse ruler of length L with m marks is a sequence of integers a_1, a_2, ..., a_m where 0 = a_1 < a_2 < ... < a_m = L. The marks
*
All-interval tetrachord
An all-interval tetrachord is a tetrachord, a collection of four pitch classes, containing all six interval classes. There are only two possible all-interval tetrachords (to within inversion), when expressed in prime form. In set theory notation, ...
Combinatorics
{{combin-stub