Skip to content

Commit

Permalink
Added changes to documentation and doctest so when built it looks cor…
Browse files Browse the repository at this point in the history
…rect.
  • Loading branch information
Noel Roemmele committed Mar 3, 2025
1 parent 91697fb commit 053245d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/sage/combinat/binary_recurrence_sequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,10 @@ def period(self, m, *, eventual=False):
- ``m`` -- integer; modulo which the period of the recurrence relation is calculated
- ``eventual`` -- boolean (default: `False`); if `True`, allow the
- ``eventual`` -- boolean (default: ``False``); if ``True``, allow the
sequence to be eventually periodic, rather than requiring it to be
purely periodic. So `n_1` might not be congruent to `n_2` modulo
`period(m)` unless `n_1` and `n_2` are large.
``period(m)`` unless `n_1` and `n_2` are large.
OUTPUT: integer (the period of the sequence modulo m)
Expand Down Expand Up @@ -397,8 +397,8 @@ def period(self, m, *, eventual=False):
sage: S.period(17)
8
Letting `eventual` be `True` allows us to find the period of a sequence
that is not purely periodic.::
Letting ``eventual`` be ``True`` allows us to find the period of a
sequence that is not purely periodic. ::
sage: T = BinaryRecurrenceSequence(5,12,u0=0,u1=1)
sage: [T(n) % 10 for n in range(20)]
Expand Down

0 comments on commit 053245d

Please # to comment.