OFFSET
0,6
COMMENTS
LINKS
Robert Israel, Table of n, a(n) for n = 0..10000
Wikipedia, Circulant matrix
FORMULA
EXAMPLE
For n = 13:
- the binary representation of 13 is "1101",
- the corresponding circulant matrix is:
[1 1 0 1]
[1 1 1 0]
[0 1 1 1]
[1 0 1 1]
- its determinant is -3,
- hence a(13) = -3.
MAPLE
a:= n-> `if`(n=1, 1, (l-> LinearAlgebra[Determinant](Matrix(nops(l),
shape=Circulant[l[-i]$i=1..nops(l)])))(convert(n, base, 2))):
seq(a(n), n=0..100); # Alois P. Heinz, Mar 05 2019
PROG
(PARI) a(n) = my (d=if (n, binary(n), [0])); my (m=matrix(#d, #d, i, j, d[1+(i-j)%#d])); return (matdet(m))
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Feb 27 2019
STATUS
approved