login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A075463 a(n) is the number of rotation-reflection inequivalent solutions to the all-ones lights out problem on an n X n square. 4
1, 1, 1, 5, 1, 1, 1, 1, 43, 1, 10, 1, 1, 5, 1, 43, 1, 1, 8356, 1, 1, 1, 2080, 5, 1, 1, 1, 1, 136 (list; graph; refs; listen; history; internal format)
OFFSET

1,4

COMMENTS

Reflected and rotated solutions are considered identical.

REFERENCES

See A075462 for references.

LINKS

Eric Weisstein's World of Mathematics, Lights Out Puzzle

MATHEMATICA

(Mma program from Jacob A. Siehler) a[n_, i_, j_ ] := Table[If[Total[Abs[{i, j} - {r, s}]] <= 1, 1, 0], {r, n}, {s, n}] //Flatten

a[n_, k_ ] := a[n, Quotient[k + n - 1, n], Mod[k, n, 1]]

m[n_ ] := a[n, # ] & /@ Range[n^2]

ker[n_ ] := NullSpace[m[n], Modulus -> 2]

b[n_ ] := Table[1, {n^2}]

sol[n_ ] := LinearSolve[m[n], b[n], Modulus -> 2];

allSolutions[n_ ] := Module[{s, k},

s = sol[n];

k = ker[n];

Mod[(s + # ) & /@ (Total[(#*k)] & /@ Tuples[{0, 1}, Length[k]]), 2]

] //Sort

MatrixRotate[m_ ] := Transpose[Reverse[m]]

MatrixRotate[m_, n_ ] := Nest[MatrixRotate, m, Mod[n, 4]]

DihedralOrbit[m_ ] := Union@Join[

MatrixRotate[m, # ] & /@ Range[0, 3],

MatrixRotate[Reverse[m], # ] & /@ Range[0, 3]

]

essentialSolutions[n_ ] := Module[{as},

as = Partition[ #, n] & /@ allSolutions[n];

Union[as, SameTest -> (MemberQ[DihedralOrbit[ #1], #2] &)]

]

Length[essentialSolutions[ # ]] & /@ Range[16]

CROSSREFS

Cf. A075462, A075464.

Sequence in context: A028315 A074062 A094635 * A026518 A051008 A109768

Adjacent sequences:  A075460 A075461 A075462 * A075464 A075465 A075466

KEYWORD

nonn,more,nice,hard

AUTHOR

Eric Weisstein (eric(AT)weisstein.com), Sep 17, 2002

EXTENSIONS

a(19)-a(29) from Jacob A. Siehler (siehlerj(AT)wlu.edu), Apr 29 2008

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 14 16:46 EST 2012. Contains 205635 sequences.