Solution
= Solution
For an <idempotent matrix>, $A^k=A$ for every integer $k\ge1$. Thus any scalar <polynomial> reduces to
$$
\boxed{p(A)=p(0)I+[p(1)-p(0)]A,}
$$
or equivalently $aI+bA$. This expression describes all <polynomials> in $A$, although its two coefficients need not be unique if $A=0$ or $A=I$.