B3=I, AB=BA2
⇒B=A−1BA2
B2=A−1BA2A−1BA2
=A−1BABA2
=A−1BBA2A2
=A−1B2A4
I=B3=A−1B2A4A−1BA2
=A−1B2A3BA2
=A−1B2A2BA2A2
=A−1B2AABA4
=A−1B2ABA2A4
=A−1B2BA2A6
=A−1B3A8=A7 ........ [∵B3=I]
∴k=7