The expansion formula in Maple with coefficients over $\mathbb Z_2$

48 Views Asked by At

How to calculate the following equality in Maple

$A = (x_1 + x_2 +x_3 + x_4)^{11}.x_2.x_3.x_4 = ?$

$B = (x_2 + x_3 + x_4)^{11}.x_1.x_2.x_3.x_4 = ?$

Here the coefficient of expansion in $\mathbb Z_2.$

1

There are 1 best solutions below

12
On BEST ANSWER

It's as easy as:

$\qquad$A:=((x1+x2+x3+x4)^11)*x2*x3*x4;

$\qquad$B:=((x2+x3+x4)^11)*x1*x2*x3*x4;

$\qquad$a:=Expand(A) mod 2;

$\qquad$b:=Expand(B) mod 2;

Responding to your comment, to display the terms of $a$ in a single vertical column, you can use the following commands:

$\qquad$s:=[op(a)]:

$\qquad$for t in s[1..(-2)] do print(t+` `) od:

$\qquad$print(s[-1]):

Note:$\;$In the command print(t+` `), the three characters after the + symbol are back-quote, space, back-quote.