Here's a start. Let C be a p x m matrix. Then CA is a (p x m)(m x n) = p x n matrix. But CA = In. Thus C is an n x m matrix. Do this again for AD. What does all this mean for A?

-Dan

I fixed the problem. Unfortunately that makes my comment pointless.

-Dan