Derangements Small

Computer Mathematics Hard 2 views
Back to Questions

Problem Description

Compute number of derangements for n

Input Format

One integer n.

Output Format

One integer.

Sample Test Case

Input:
4
Output:
9

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev