Skip to content

Commit d952887

Browse files
yyyyx4GiacomoPope
andcommitted
reviewer suggestion
Co-authored-by: Giacomo Pope <[email protected]>
1 parent 4935e12 commit d952887

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/sage/combinat/q_analogues.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,10 +1053,7 @@ def monic_reducible(irreducible, d):
10531053
"""
10541054
res = 0
10551055
for p in Partitions(d+1, max_part=d):
1056-
tmp = 1
1057-
for r, t in zip(irreducible, p.to_exp(d)):
1058-
tmp *= binomial(r+t-1, t)
1059-
res += tmp
1056+
res += prod(binomial(r+t-1, t) for r, t in zip(irreducible, p.to_exp(d)))
10601057
return res
10611058

10621059
r = []

0 commit comments

Comments
 (0)