diff --git a/src/sage/combinat/k_regular_sequence.py b/src/sage/combinat/k_regular_sequence.py index 2b7bdf7cf3e..595b2f15c25 100644 --- a/src/sage/combinat/k_regular_sequence.py +++ b/src/sage/combinat/k_regular_sequence.py @@ -2468,7 +2468,7 @@ def entry(i, kk): current_row = 0 for i in inhomogeneities.keys(): for b in srange(lower, upper + 1): - S_b = inhomogeneities[i].subsequence(1, b) + S_b = inhomogeneities[i].subsequence(1, b, minimize=False) shifted_inhomogeneities.update({(i, b): (S_b, current_row)}) current_row += S_b.mu[0].ncols() @@ -2612,7 +2612,7 @@ def right(self, recurrence_rules): uu = recurrence_rules.uu lower = floor(ll/k**M) upper = floor((k**(M-1) - k**m + uu)/k**M) - shifted_inhomogeneities = [S.subsequence(1, b) + shifted_inhomogeneities = [S.subsequence(1, b, minimize=False) for S in inhomogeneities.values() for b in srange(lower, upper + 1)] right = vector(chain(right, *[S.right for S in shifted_inhomogeneities]))