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.

A197487 Number of nonsingular n X n matrices with elements from {0,1,2}.

Original entry on oeis.org

1, 2, 50, 12792, 30844560, 671869521960, 129553882116606720
Offset: 0

Views

Author

Roger Hui, Nov 29 2011

Keywords

Crossrefs

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