设方阵A满足(A+E)2=E,且B与A相似,证明:B2+2B=0.