From d952887dff36f7ccd758e74898a6b394aa2fffe8 Mon Sep 17 00:00:00 2001 From: Lorenz Panny <84067835+yyyyx4@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:46:16 +0100 Subject: [PATCH] reviewer suggestion Co-authored-by: Giacomo Pope <44242839+GiacomoPope@users.noreply.github.com> --- src/sage/combinat/q_analogues.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/sage/combinat/q_analogues.py b/src/sage/combinat/q_analogues.py index 4db8c47d324..f2b744d179f 100644 --- a/src/sage/combinat/q_analogues.py +++ b/src/sage/combinat/q_analogues.py @@ -1053,10 +1053,7 @@ def monic_reducible(irreducible, d): """ res = 0 for p in Partitions(d+1, max_part=d): - tmp = 1 - for r, t in zip(irreducible, p.to_exp(d)): - tmp *= binomial(r+t-1, t) - res += tmp + res += prod(binomial(r+t-1, t) for r, t in zip(irreducible, p.to_exp(d))) return res r = []