Subfactorial Calculator

!n = n! · Σ(-1)^k/k!

All Tools

Loading tool...

About Subfactorial Calculator

A subfactorial calculator computing !n = n!·Σ(-1)^k/k! for k=0..n. Equivalent to the number of derangements. Shows the inclusion-exclusion formula, ratio to n!, and the nearest integer formula !n = round(n!/e). Client-side.

Subfactorial Calculator Features

  • !n formula
  • Inclusion-exclusion
  • Ratio to n!
  • Round(n!/e)
  • Sequence
Advertisement
Advertisement