Given A=⎡⎢⎣l2−3p00m2−8qr0n2−15⎤⎥⎦
A is idempotent
⇒A2=A
Also, given that A is non-singular idempotent matrix. Thus A−1 exists
⇒A−1 pre multiplication is possible
⇒A−1⋅A⋅A=A−1⋅A⇒I⋅A=I⇒A=I
⇒ Non-singular Idempotent matrix will always be a unit matrix
Thus, By comapring A with I
l2−3=1, p=0m2−8=1, q=0n2−15=1, r=0
⇒l=±2,m=±3,n=±4
⇒l+m+n+p+q+r=0