document.write( "Question 28577: Is the following 15 puzzle solvable or unsolvable?\r
\n" );
document.write( "\n" );
document.write( "2 1 3 4\r
\n" );
document.write( "\n" );
document.write( "5 8 7 6\r
\n" );
document.write( "\n" );
document.write( "9 10 12 11\r
\n" );
document.write( "\n" );
document.write( "15 13 14 * \n" );
document.write( "
Algebra.Com's Answer #26205 by astromathman(21)![]() ![]() You can put this solution on YOUR website! It is not solvable. It takes 7 swaps of adjacent pairs to \"solve\" it. Since 7 is an odd number, it is not solvable. If it took an even number of swaps, it would be solvable. \n" ); document.write( "Note: \n" ); document.write( "In the first row, swap 2 and 1. \n" ); document.write( "In the third row, swap 11 and 12. \n" ); document.write( "In the 4th row, 15,13,14 --> 13, 15, 14 --> 13,14,15 (2 swaps) \n" ); document.write( "In the second row, 5, 8, 7, 6 --> 5, 7, 8, 6 --> 5, 7, 6, 8 --> 5, 6, 7, 8 (3 swaps). \n" ); document.write( "That's 7 swaps altogether.\r \n" ); document.write( "\n" ); document.write( "To try it out, go to http://www.javaonthebrain.com/java/puzz15/. You can get everything down to a single pair out of order, but no further. \n" ); document.write( " |