Home

Derangements

A derangement, also known as a permutation without fixed points, is a permutation of a set where no element appears in its original position. Derangements have applications in various fields, including combinatorics, probability, and computer science. The number of derangements of a set of n elements is denoted by D(n).

The problem of finding the number of derangements was first posed by Pierre Raymond de Montmort in

D(n) = (n - 1) * [D(n - 1) + D(n - 2)]

with the base cases D(0) = 1 and D(1) = 0.

Derangements have several interesting properties. For example, the number of derangements of a set of n elements

Derangements also appear in the context of the hat-check problem, where n guests each leave their hat

In conclusion, derangements are a fascinating topic in combinatorics with various applications and interesting properties. The

1708.
The
formula
for
D(n)
can
be
derived
using
the
principle
of
inclusion-exclusion
or
through
recursive
methods.
The
recursive
formula
is:
is
always
less
than
n!
(n
factorial),
and
the
ratio
D(n)
/
n!
approaches
1/e
as
n
approaches
infinity,
where
e
is
the
base
of
the
natural
logarithm.
with
a
hat-check
person,
and
the
hats
are
returned
in
a
random
order.
The
probability
that
no
guest
receives
their
own
hat
back
is
given
by
D(n)
/
n!.
study
of
derangements
continues
to
be
an
active
area
of
research
in
mathematics.