In Q[X], the residue class modulo X containing
2 consists of all polynomials of the form 2 + Xf for
some polynomial f. In other words, it consists of all
polynomials whose constant term is 2.
The equivalence class
contains the polynomial 2 + X + X10.
So
{2 + X + X10 + Xf | f
an arbitrary polynomial}
describes the same equivalence class.
Let dZ/2Z[X] denote the polynomial
X2 + 1. By division with remainder we can find, for
each equivalence class in Z/2Z[X]/(d),
a representative of degree at most 1.
Consider the equivalence
class of X3. Division
by X2 + 1 leads to X3
= X(X2 + 1) + X; in other words,
X3 and X differ by a multiple of
X2 + 1. Hence X3 is congruent to
X modulo X2 + 1.
The residue class ring Z/2Z[X]/(X2)
consists of precisely four classes:
0 + (X2),
1 + (X2),
X + (X2),
1 + X + (X2).
To verify this, note that every class has a representative of degree
at most 1 (start with an arbitrary representative,
divide by X2 and take the remainder), so there are
at most four classes, because there are exactly four polynomials
of degree at most 1.
Finally, two distinct polynomials of degree at most 1 can
never be congruent modulo the degree 2 polynomial X2.