OFFSET
1,2
COMMENTS
For n > 1, of the permutations that can be reached by disassembling the puzzle and replacing the tiles, exactly half of them can be reached by sliding the tiles.
LINKS
Eric Weisstein's World of Mathematics, 15 Puzzle
FORMULA
a(1) = 1; a(n) = (n^2)!/2 for n > 1.
EXAMPLE
a(4) = 10461394944000 because the standard 4 X 4 version of the 15-puzzle has exactly 10461394944000 permutations that can be reached by sliding the tiles.
MATHEMATICA
a[n_] := If[n == 1, 1, (n^2)!/2]
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Ben Whitmore, Nov 01 2015
EXTENSIONS
a(1) added by Franklin T. Adams-Watters, Nov 11 2015
STATUS
approved