Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A075463
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A075463 a(n) is the number of rotation-reflection inequivalent solutions to the all-ones lights out problem on an n X n square. +0
5
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; listen)
OFFSET

1,4

COMMENT

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 this_sequence A026518 A051008 A109768

Adjacent sequences: A075460 A075461 A075462 this_sequence 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

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified November 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research