I can count placing for N-Queens on NxN table, but how can I count placings for K queens, where 1<=K<=N and N = size of chessboard.
I will be glad for any idea