Skip to content

Commit 4c437cb

Browse files
author
Matthias Koeppe
committed
sage.rings: More # optional
1 parent bfc5cdf commit 4c437cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sage/rings/finite_rings/integer_mod.pyx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4099,7 +4099,7 @@ def lucas_q1(mm, IntegerMod_abstract P):
40994099
TESTS::
41004100
41014101
sage: from sage.rings.finite_rings.integer_mod import lucas_q1
4102-
sage: all(lucas_q1(k, a) == BinaryRecurrenceSequence(a, -1, 2, a)(k) # optional - sage.combinat
4102+
sage: all(lucas_q1(k, a) == BinaryRecurrenceSequence(a, -1, 2, a)(k) # optional - sage.combinat sage.modules
41034103
....: for a in Integers(23)
41044104
....: for k in range(13))
41054105
True
@@ -4167,15 +4167,16 @@ def lucas(k, P, Q=1, n=None):
41674167
sage: p = randint(0,100000)
41684168
sage: q = randint(0,100000)
41694169
sage: n = randint(1,100)
4170-
sage: all(lucas(k, p, q, n)[0] == Mod(lucas_number2(k, p, q), n) # optional - sage.combinat
4170+
sage: all(lucas(k, p, q, n)[0] == Mod(lucas_number2(k, p, q), n) # optional - sage.combinat sage.libs.gap
41714171
....: for k in Integers(20))
41724172
True
41734173
sage: from sage.rings.finite_rings.integer_mod import lucas
41744174
sage: p = randint(0,100000)
41754175
sage: q = randint(0,100000)
41764176
sage: n = randint(1,100)
41774177
sage: k = randint(0,100)
4178-
sage: lucas(k, p, q, n) == [Mod(lucas_number2(k, p, q), n), Mod(q^(int(k/2)), n)] # optional - sage.combinat
4178+
sage: lucas(k, p, q, n) == [Mod(lucas_number2(k, p, q), n), # optional - sage.combinat
4179+
....: Mod(q^(int(k/2)), n)]
41794180
True
41804181
41814182
EXAMPLES::

0 commit comments

Comments
 (0)