Skip to content

Commit

Permalink
Fixing typo due to 0-based notation in to_cycle().
Browse files Browse the repository at this point in the history
  • Loading branch information
tscrim committed Sep 12, 2023
1 parent 68d6c11 commit 1b8d03b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/sage/combinat/colored_permutations.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,12 +1268,13 @@ def cycle_type(self):
Return a pair of partitions of ``len(self)`` corresponding to the
signed cycle type of ``self``.
A *cycle* is a tuple `C = (c_0, \ldots, c_k)` with `\pi(c_i) = c_{i+1}`
for `0 \leq i < k` and `\pi(c_k) = c_0`. If `C` is a cycle,
`\overline{C} = (-c_0, \ldots, -c_k)` is also a cycle. A cycle is
*negative*, if `C = \overline{C}` up to cyclic reordering. In this
case, `k` is necessarily even and the length of `C` is `k/2`.
A *positive cycle* is a pair `C \overline{C}`, its length is `k`.
A *cycle* is a tuple `C = (c_0, \ldots, c_{k-1})` with
`\pi(c_i) = c_{i+1}` for `0 \leq i < k` and `\pi(c_{k-1}) = c_0`.
If `C` is a cycle, `\overline{C} = (-c_0, \ldots, -c_{k-1})` is
also a cycle. A cycle is *negative*, if `C = \overline{C}` up
to cyclic reordering. In this case, `k` is necessarily even
and the length of `C` is `k/2`. A *positive cycle* is a pair
`C \overline{C}`, its length is `k`.
Let `\alpha` be the partition whose parts are the lengths of the
positive cycles and let `\beta` be the partition whose parts are
Expand Down

0 comments on commit 1b8d03b

Please sign in to comment.