normalizedPermutation

Answer the index of the given permutation (tuple of integers), adding it to the global permutations tuple if necessary.

Return

The permutation's one-based index.

Parameters

permutation

The permutation whose globally unique one-based index should be determined.