OFFSET
0,3
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Wikipedia, Toeplitz matrix
EXAMPLE
| 4 3 3 |
a(10) = 433 because det | 3 4 3 | = 10.
| 3 3 4 |
.
| 2 5 6 2 4 |
| 5 2 5 6 2 |
a(38)= 25624 because det | 6 5 2 5 6 | = 38.
| 2 6 5 2 5 |
| 4 2 6 5 2 |
MAPLE
with(numtheory): with(linalg): P:=proc(q) local a, c, i, k, n; print(0);
for i from 1 to q do for n from 1 to q do a:=convert(n, base, 10):
c:=[]: for k from 1 to nops(a) do c:=[op(c), a[-k]]: od:
if det(toeplitz(c))=i then print(n); break: fi: od: od: end: P(10^6);
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Paolo P. Lava, May 03 2019
STATUS
approved