This is really intriguing topic, and fondly brings back mathematical techniques that I probably haven't used in decades. What fun!
and multiplying it again produces
(I'm sure there's a good reason why the top row of the cube has the same values as the bottom row of the square.)
The module I suggested doesn't provide a power function, so I suppose the developer would have to jerry-rig something up that multiplies a matrix by itself n-1
Alex / talexb / Toronto
Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.