Case-I: 1→7 times
and −1→2 times
number of possible matrix =7!2!9!=36
Case-II: 1→6 times, −1→1 times
and 0>2 times
number of possible matrix =6!2!9!=252
Case-III: 1→5 times,
and 0→4 times
number of possible matrix =5!4!9!=126
Hence total number of all such matrix A =414