We're presented with the following chessboard, and we aim to determine the number of arrangements in which 6 rooks can be placed without threatening each other. It's crucial to note that rooks cannot be placed on squares of the hashed squares. How many such arrangements are possible?
I'm trying to determine the coefficient of $x^6$ in the rook polynomial. However, solving it directly seems overly complex. I attempted to apply the inclusion-exclusion principle, but unfortunately, my efforts were unsuccessful

There are $6!$ ways to arrange rooks so that none beat each other. But we must subtract the number of arrangements where rooks take prohibited spots. Using inclusion-exclusion I got the following expression:
$$6!-8*5!+(6+5+4+3+3+1)*4!-(11+7+4+1+1)*3!+(3+2+1+2+1)*2!-1.$$
The number of arrangements where $k$ rooks take the prohibited squares can be calculated manually, looking at the picture. So the answer is $$161.$$