You might know the 15 puzzle:
$\hskip1.4in$
Concerning the solvability, Wiki says:
The invariant is the parity of the permutation of all 16 squares plus the parity of the taxicab distance (number of rows plus number of columns) of the empty square from the lower right corner. This is an invariant because each move changes both the parity of the permutation and the parity of the taxicab distance. In particular if the empty square is in the lower right corner then the puzzle is solvable if and only if the permutation of the remaining pieces is even.
I don't get what exactly is meant with the parity of the permutation in this special case?
There are many equivalent ways of defining the parity of a permutation. For the 15 puzzle, if the blank is in the lower right, you can imagine restoring the original setup by removing two tiles and replacing them in each other's position until you are done. There are many paths to home, but they will either all have an odd number of steps or all have an even number of steps. For example, the original puzzle was shipped with the 14 and 15 swapped. That takes one flip if you flip 14 and 15. You could also flip (14,1), (1,15), (14,1). That is three swaps, but is still odd. The puzzle is solvable with sliding moves iff the permutation is even.