l !!8
Enter derangement

Calculate !8

Derangements are a permutation where

No original set elements

appear in their same position

Derangements formula for !n:

!n = [n!/e + 0.5]

where [] is the floor function

and e = Eulers constant of 2.718281828459

Plugging in our numbers, we get:

!8 = [8!/2.718281828459 + 0.5]

Calculate 8!

8! = 8 x 7 x 6 x 5 x 4 x 3 x 2 x 1

8! = 40320

!8 = [40320/2.718281828459 + 0.5]

!8 = [14832.899068033 + 0.5]

!8 = [14833.399068033]

[14833.399068033] = 14833


!8 = 14,833