I want to raise the polynomial vec1[0] to the power of a number mod x
(vec1[0])^Binv[0][0], however when I do that, I receive the following message:
unsupported operand type(s) for &: 'sage.rings.finite_rings.integer_mod.IntegerMod_gmp' and 'int'
When I change Binv[0][0] to be an integer, everything works fine, however, this is not what I want to achieve. Is there any workaround to this?