How many ways can we arrange the eight digits 1, 2, 3, 4, 5, 6, 7, and 8 so that none of the digits is its position?
For example:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
*Relevant wiki:" Derangements .
In this case, the number of ways (using this wiki) is:
1.- the nearest integer to e 8 ! = = ⌊ e 8 ! ⌉ = 1 4 8 3 3 2.- 8 ! ( r = 0 ∑ 8 r ! ( − 1 ) r ) = 1 4 8 3 3
3.- We can also use D ( n ) = n D ( n − 1 ) + ( − 1 ) n ... D ( 1 ) = 0 , D ( 2 ) = 1 , . . .