Edit An explanation of why this question is completely different to the one that it has been associated with is given in comments, to the accepted answer.
I am trying to count the number of $n\times n$ matrices, where every entry is a lowercase alphabet, such that every row and column contains at least one "$a$".
I successfully found it for $N=2$, but I failed for $N = 3$.
Here is what I have done:
For a $3\times3$ matrix to satisfy this condition, we should have at least 3 A's, that too in particular locations. (i.e. 6 different ways of placing 3 A's)
So, with 3 a's, we will have $6\cdot (25^6)$
With 4 a's we will have $6\cdot \binom 61 \cdot(25^5)$
With 5 a's we will have $6\cdot \binom 62 \cdot(25^4)$ and so on.. this way.
But the answer seems incorrect. Can someone point out the mistake I did?
Thank you in prior