There are $8!= 40320$ eight-digit positive integers that use each of the digits $1, 2, 3, 4, 5, 6, 7, 8$ exactly once. Let $N$ be the number of these integers that are divisible by $22$. Find the difference between $N$ and $2025$.
Divisibility by $22$ means divisibility by $2$ (last digit even) and $11$ (alternating sum $\equiv0$). With $O$ and $E$ the sums of the digits in odd and even positions, $O+E=36$ and $11\mid O-E$, so $O=E=18$.
The $4$-element subsets of $\{1,\dots,8\}$ with sum $18$ are $\{1,2,7,8\},\{1,3,6,8\},\{1,4,5,8\},\{1,4,6,7\},\{2,3,5,8\},\{2,3,6,7\},\{2,4,5,7\},\{3,4,5,6\}$: eight of them, each containing exactly two even digits.
Choose the set for the even positions ($8$ ways), its last digit even ($2$ ways), the other three even positions ($3!$) and the odd positions ($4!$): $N=8\cdot2\cdot6\cdot24=2304$.
There are $8!= 40320$ eight-digit positive integers that use each of the digits $1, 2, 3, 4, 5, 6, 7, 8$ exactly once. Let $N$ be the number of these integers that are divisible by $44$. Find the difference between $N$ and $2025$.