OFFSET
1,2
COMMENTS
a(n) is the order of the automorphism group of the n^2 X n^2 Sudoku graph (see A182866).
FORMULA
a(n) = 2*(n!)^(2n+2) for n > 1.
EXAMPLE
For n=2, a(2) = 128 is the number of symmetries of a Shidoku puzzle.
For n=3, a(3) = 3359232 is the number of symmetries of standard 9 X 9 Sudoku puzzle.
MATHEMATICA
Join[{1}, Table[2*n!^(2*n+2), {n, 2, 9}]] (* Stefano Spezia, Jul 27 2021 *)
PROG
(SageMath)
M = matrix(n^4, n^4)
for i in [0..n^4-1]:
for j in [0..n^4-1]:
if i!=j:
if i%n^2==j%n^2:
M[i, j]=1
if floor(i/n^2)==floor(j/n^2):
M[i, j]=1
D = Graph(M, format='adjacency_matrix')
for col in [0..n-1]:
for row in [0..n-1]:
tl = n*col + n^3*row
s = []
for i in [0..n-1]:
for j in [0..n-1]:
s.append(tl + i + n^2*j)
D.add_clique(s)
print(D.automorphism_group().order())
CROSSREFS
KEYWORD
nonn
AUTHOR
Carl-Fredrik Nyberg Brodda, Shay Jordan, Jul 27 2021
STATUS
approved