Involution Number

Count permutations of n labeled elements consisting only of fixed points and transpositions exactly, including the empty involution; n is capped at 2,000.

Description

An involution is a permutation that becomes the identity when applied twice.

An involution is a permutation that becomes the identity when applied twice. Its cycles consist only of fixed points and two-element transpositions.1

The tool returns value. The indexing and output conventions below determine how to read these values.

When to use Involution Number

Use this for the following task: Count permutations of n labeled elements consisting only of fixed points and transpositions exactly, including the empty involution; n is capped at 2,000. Use the input and output conventions below to reproduce the intended mathematical quantity.

How to use Involution Number and understand its results

  1. Choose the required indexes, integers or sequence entries. Preserve decimal-string encodings where the field table specifies strings.
  2. Enter n according to the field table, then run the tool.
  3. Read value. Preserve exact decimal strings and the stated indexing or coefficient order.
  4. Keep exact decimal strings for subsequent integer arithmetic; distinguish them from any explicitly approximate numeric result.
Input fieldMeaningValue type and boundsRequirement
nPermutation size (resource limit 2000)integer; minimum 0; maximum 2000Required

Maintain the previous two BigInt counts and apply the recurrence through the supplied set size. Return an exact decimal string.

I(0)=I(1)=1; I(n)=I(n−1)+(n−1)×I(n−2)

The symbols and boundary conditions refer to the supplied fields and the implementation described above.

Output fieldMeaningValue type
valueInvolution countstring (integer/arbitrary)
json
{
  "input": {
    "n": 6
  },
  "output": {
    "value": "76"
  }
}

Limitations and assumptions

The size is at most 2000. The empty involution counts as one; permutations are counted without enumeration or restrictions on the number of fixed points.

Use the declared integer bounds and string formats. Large exact outputs remain decimal strings; numerical approximations use ordinary floating-point arithmetic. A rejected input is different from a valid zero count or false membership flag.

Alternative or Complementary methods

Choose Rencontres Number when you need its operation: Count permutations of n labeled elements with exactly k fixed points using C(n,k)·D(n−k), returning zero for k>n; indices are capped at 1,000. Choose Derangement Number for the complementary operation: Count permutations of n labeled elements with no fixed points exactly, including one empty derangement; n is capped at 2,000.

Background reference: OEIS A000085.

References

  1. OEIS A000085 — OEIS Foundation

Similar or alternative tools

  • Rencontres Number

    Count permutations of n labeled elements with exactly k fixed points using C(n,k)·D(n−k), returning zero for k>n; indices are capped at 1,000.

  • Derangement Number

    Count permutations of n labeled elements with no fixed points exactly, including one empty derangement; n is capped at 2,000.

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies