Everything2
Near Matches
Ignore Exact
Full Text
Everything2

Permutations with no fixpoints

created by ariels

(thing) by ariels (1.7 d) (print)   ?   (I like it!) 1 C! Fri May 05 2000 at 22:13:36

Think of a permutation on n elements as a function {1,...,n} → {1,...,n}. It makes sense to count how many fixpoints this function has. There are n! permutations. How many permutations have no fixpoints? All the rotations, for a start, but obviously many more.

We may calculate a formula for this number using Poincaré's inclusion / exclusion principle. Note that the proportion of permutations fixing some specified point is 1/n, and, in general, 1/(n⋅(n-1)⋅...⋅(n-k+1)) of the permutations fix some k specified points.

By the inclusion / exclusion principle, the number of permutations with no fixpoints is

n! - a1*(n-1)! + a2*(n-2)! + ... + (-1)kak*(n-k)! + ...,
where ak=n!/(k!(n-k)!) is the number of ways to select k points. Cancelling, we see that the number is precisely
n! * (1/0! - 1/1! + 1/2! - 1/3! + 1/4! - ... + (-1)n/n!)

Note that the numbers in the brackets converges very rapidly to 1/e (where e=2.718281828459045... is Napier's constant, the base for natural logarithms). So it is fair to say that approximately 1/e of all permutations have no fixpoint. In fact, the exact number is the closest integer to n!/e.


printable version
chaos

inclusion / exclusion principle fixpoint permutation The mathematician as madman
Transitive closure Passacaglia and Fugue in C minor Euler
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
The best nodes of all time:
The Hours
Henley by-election
The Sleeping Gypsy
Scottish Court rules: "Fuck off" is not an insult
Stupid Word Tricks
lime
Love is tangerine light
Nintendo DS
Saint Philomena
Harry Potter and the Half-Blood Prince
polyandry
My regret sits on the floor like someone else's polaroid photos
Clinical depression
New Writeups
TheOrientalAfrican
ToTheGuyWithAidsSittingN... (I Am Really Really Sorry)(person)
Heitah
Why I love Everything2(person)
trixingee
Dungeon Mastering for the first time(idea)
Netrat0
It's Called Subtext, Honey(person)
eyeofthebeholder
The Dragon(idea)
Heitah
consist, comprise, constitute, or compose(idea)
Meezzio
Gotlandssnus(thing)
argv
Astral Plane(idea)
Madara
One Winged Angel(fiction)
Tom Rook
Talk is cheap(poetry)
shaogo
Adelle Davis(person)
Aerobe
race car g sfjsgsd(poetry)
Binah
Dream Log: July 5, 2008(dream)
StrawberryFrog
Forgotten things in space(idea)
antigravpussy
velvet revolution fairy tale(idea)
This affordable entertainment brought to you by The Everything Development Company