Skip to content

Commit a09d67e

Browse files
committed
Trac #21325 review comment 9: add comment in inner loop
1 parent 6e2acb0 commit a09d67e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/sage/combinat/k_regular_sequence.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,13 @@ def prepend_zeros(T, d, zero):
497497
while ci < len(kernel):
498498
c = kernel[ci]
499499
for r in A:
500+
# We now compute the contributions of v(an+c)[an >= 0] to
501+
# the linear representation by using
502+
# v(a(kn+r)+c) [a(kn+r)+c >= 0]
503+
# = v(kan+ar+c) [kan+ar+c >= 0]
504+
# = v(k(an+d)+f) [an+d >= 0]
505+
# = mu[f] v(an+d) [an+d >= 0]
506+
# where v(n) = self.__getitem__(n, multiply_left=False).
500507
d, f = (a*r + c).quo_rem(k)
501508
if d not in kernel:
502509
kernel.append(d)

0 commit comments

Comments
 (0)