I was thinking about asking this is chat because I thought that my concern is not serious enough, but it became too long so here I am.
I hope that the question is clear: you just can't place rooks on squares with coordinates $(1, 1), 2, 2)$ and so on. I will call these squares forbidden. For small board sizes the answer is: 2x2 - 1, 3x3 - 2, 4x4 - 9 (if I haven't made a mistake which I'm not so sure about).
This problem is harder than it felt at the first glance. What makes it harder is the fact that after placing a rook on the 1st line and figuring out ways for all the lower lines, these lower lines are not equal: one of them already has forbidden square on a column on which you placed the 1st line rook, so nothing is changed for this line, but for other lines you have lessen the number of vacant places by one. To make it more clear, think of coordinates as index of a matrix element, and say: forbidden squares are $(1, 1), (2, 2), \ldots$, you place a rook on square $(1, 2)$, and thus squares $(2, 2), (3, 2), (4, 2), \ldots$ are now closed, but $(2, 2)$ was already closed before that, so nothing changed.
My question is: can you evaluate "offhand" if it would be hard to solve on a computer? By solving I mean continue the sequence $1, 2, 9, \ldots$ for increasing chessboard size. And secondly: is such a programm really would be easier to write on python than c/c++? To me it seems like an easy thing for a computer to calculate, but what if I'm missing something.
I'm not even asking to solve this problem, but if you want then I don't mind. If you want to do it on a computer than I also would be very glad. But maybe this question is already known or explained in some book? I don't know because I came up with this problem myself, but I don't consider myself an expert in combinatorics, so maybe I just don't know something. It seems obvious that for any $n$ and arbitrary set of cut squares there can't be any algorythm. In any case, thank you a lot.
Add: After posting I realised why it seems easy to caltulate on a machine. In a "worst case scenario" you could just place $n$ rooks on a special board in any way possible and than add $+1$ if no one of them are hitting each other. Of course it would take a huge amount of time, but it should work. For regular board it would be $8\cdot7 = 56$ squares, $C_{56}^8$ seems like impossible number, but you could hugely decrease it by placing only one rook on a line. So it's just $7^8$ positions to check which is still a lot.