Let A and B be two non-singular square matrices such that B≠I and AB2 =BA.If A3=B-1A3Bn , then the value of n is
BA=AB2 A-1(BA)=B2 (A-1BA)m=B2m A-1BmA=B2m BmA=AB2m also, BA=AB2 A=B-1AB2 An=B-1AnB2n