Derangement (Subfactorial) Calculator
Calculate !n, the number of derangements of n elements — permutations that leave no item in its original position. Returns the exact count, n!, and the derangement probability, computed with arbitrary-precision arithmetic.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
n (number of elements)
0 <= x <= 1000Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.