The field $F$ with characteristic two is given, and a $2n\times 2n$ matrix $A=(a_{ij})$ with entries in $F$ is defined as follows:
$$a_{ij}=0\text{ for }i=j\text{ and }a_{ij}=1\text{ otherwise.}$$
Prove that $\det(A)$ is equal to the number of derangements of $2n$ elements.
It actually does not. For example, if $n=2$ then you get $-1$ instead of $1$. If you compute the permanent instead of the determinant then you do get the number of derangements. The permanent of $A$ is the sum over all "generalized diagonals" $a_{i\pi(i)}$ for all permutations $\pi$. In this case, the sum is $1$ if $\pi$ is a derangement, and $0$ otherwise.