cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A115222 Number of 3 X 3 matrices over Z(n) having nonzero determinant.

This page as a plain text file.
%I A115222 #3 Mar 30 2012 17:22:41
%S A115222 0,168,11232,161280,1488000,7170552,33784128,106659840,327525120,
%T A115222 839997000,2124276000,4307378688,9726417792,18401146008,34512588000
%N A115222 Number of 3 X 3 matrices over Z(n) having nonzero determinant.
%C A115222 See A064767 for the number of invertible matrices.
%F A115222 a(n)=n^9-A115221(n). For prime n, a(n)=A064767(n)=n^3 (n-1)^3 (n+1) (n^2+n+1)
%t A115222 Table[cnt=0; Do[m={{a, b, c}, {d, e, f}, {g, h, i}}; If[Det[m, Modulus->n]>0, cnt++ ], {a, 0, n-1}, {b, 0, n-1}, {c, 0, n-1}, {d, 0, n-1}, {e, 0, n-1}, {f, 0, n-1}, {g, 0, n-1}, {h, 0, n-1}, {i, 0, n-1}]; cnt, {n, 2, 7}]
%K A115222 nonn
%O A115222 1,2
%A A115222 _T. D. Noe_, Jan 16 2006