Subalgebras of the steenrod algebra and the action of matrices on truncated polynomial algebras