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.

A350711 The number of different values taken by the determinant of a square n X n matrix whose elements are 1 or i = sqrt(-1).

Original entry on oeis.org

1, 2, 7, 11, 27, 63, 177
Offset: 0

Views

Author

Vladimir Reshetnikov, Mar 27 2022

Keywords

Examples

			For n = 2 there are 2^(2*2) = A002416(2) = 16 square 2 X 2 matrices whose elements are 1 or i. Their determinants take 7 distinct values: 0, 2, -2, 1 + i, 1 - i, -1 + i, -1 - i. So a(2) = 7.
		

Crossrefs

Programs

  • Mathematica
    Join[{1, 2}, Table[With[{d = Union[Det /@ DeleteCases[Subsets[Tuples[{1, I}, n], {n}], {{, 1}, , {I, } | {, I}}]]}, Length[Union[d, -d, {0}]]], {n, 2, 6}]]