A197487 Number of nonsingular n X n matrices with elements from {0,1,2}.
1, 2, 50, 12792, 30844560, 671869521960, 129553882116606720
Offset: 0
Links
- Minfeng Wang, C++ program to calculate A197487
Programs
-
Mathematica
(* 2x2 case *) cnt = 0; Do[d = Det[{{a, b}, {c, d}}]; If[d != 0, cnt++], {a, 0, 2}, {b, 0, 2}, {c, 0, 2}, {d, 0, 2}]; cnt (* T. D. Noe, Nov 29 2011 *)
Extensions
a(5)-a(6) from Minfeng Wang, May 29 2024
a(0)=1 prepended by Alois P. Heinz, May 29 2024
Comments