OFFSET
0,2
COMMENTS
Inspired by the matrices shown in Raptis link.
For n < 3 the matrix A(n) shows the Lebesgue Z-order curve pattern.
For n > 1, the matrix A(n) is singular.
LINKS
Theophanes Raptis and Vasilios Raptis, Symmetries and Scale Invariance in Global Maps of Quantum Circuits, Proceedings 123, no. 1: 5 (2025). See p. 4.
Wikipedia, Z-order curve.
EXAMPLE
a(1) = 2:
[0, 1]
[2, 3]
a(2) = 25456:
[ 0, 1, 4, 5]
[ 2, 3, 6, 7]
[ 8, 9, 12, 13]
[10, 11, 14, 15]
a(3) = 4237316640:
[ 0, 1, 4, 5, 8, 9]
[ 2, 3, 6, 7, 10, 11]
[12, 13, 16, 17, 20, 21]
[14, 15, 18, 19, 22, 23]
[24, 25, 28, 29, 32, 33]
[26, 27, 30, 31, 34, 35]
MATHEMATICA
A[i_, j_, n_]:=n(2i-(-1)^i-3)+2j-(-1)^j/2+(-1)^i-3/2; a[n_]:=Permanent[Table[A[i, j, n], {i, 2n}, {j, 2n}]]; Join[{1}, Array[a, 10]]
PROG
(PARI) a(n) = matpermanent(matrix(2*n, 2*n, i, j, n*(2*i - (-1)^i - 3) + 2*j - (-1)^j/2 + (-1)^i - 3/2)); \\ Michel Marcus, Nov 15 2025
CROSSREFS
KEYWORD
nonn
AUTHOR
Stefano Spezia, Nov 15 2025
STATUS
approved
