Idempotent matrices

Problem 572

A matrix is called idempotent if .
Let
be a three by three matrix : .
Let C(n) be the number of idempotent three by three matrices
with integer elements such that
.
C(1)=164 and C(2)=848.
Find C(200).