Example

Let R = Z/2Z and d = X2 + X + 1 R[X]. The matrix of the map mod d restricted to R[X]<5 with respect to the basis 1, X, X2, X3, X4 of R[X]<5 and 1, X of R[X]/(d) is

10110
01101
.