Skip to content

Commit 1b8d03b

Browse files
committed
Fixing typo due to 0-based notation in to_cycle().
1 parent 68d6c11 commit 1b8d03b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/sage/combinat/colored_permutations.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1268,12 +1268,13 @@ def cycle_type(self):
12681268
Return a pair of partitions of ``len(self)`` corresponding to the
12691269
signed cycle type of ``self``.
12701270
1271-
A *cycle* is a tuple `C = (c_0, \ldots, c_k)` with `\pi(c_i) = c_{i+1}`
1272-
for `0 \leq i < k` and `\pi(c_k) = c_0`. If `C` is a cycle,
1273-
`\overline{C} = (-c_0, \ldots, -c_k)` is also a cycle. A cycle is
1274-
*negative*, if `C = \overline{C}` up to cyclic reordering. In this
1275-
case, `k` is necessarily even and the length of `C` is `k/2`.
1276-
A *positive cycle* is a pair `C \overline{C}`, its length is `k`.
1271+
A *cycle* is a tuple `C = (c_0, \ldots, c_{k-1})` with
1272+
`\pi(c_i) = c_{i+1}` for `0 \leq i < k` and `\pi(c_{k-1}) = c_0`.
1273+
If `C` is a cycle, `\overline{C} = (-c_0, \ldots, -c_{k-1})` is
1274+
also a cycle. A cycle is *negative*, if `C = \overline{C}` up
1275+
to cyclic reordering. In this case, `k` is necessarily even
1276+
and the length of `C` is `k/2`. A *positive cycle* is a pair
1277+
`C \overline{C}`, its length is `k`.
12771278
12781279
Let `\alpha` be the partition whose parts are the lengths of the
12791280
positive cycles and let `\beta` be the partition whose parts are

0 commit comments

Comments
 (0)