Prove the following statements or provide a counterexample if it is false
If $A$ is a square matrix of order $5$ and $A^{2}=0$ (the zero matrix) then rank(A) is at most $1$.
From the answer given below the statement is false and a counterexample was given. But what im still unclear is that for such questions how would u be able to know whether u need to prove the statement or to disprove it. And also what are the thought process needed to come out with such counterexamples. It seems like the person is able to come out with counterexamples out of nowhere like magic. Could anyone explain. Thanks