Since m and n are selected between 1 and 100, hence sample space = 100 × 100
Also, 7
1 = 7, 7
2 = 49, 7
3 = 343, 7
4 = 2401,
7
5 = 16807 etc. Hence 1, 3, 7 and 9 will be the last digits in the powers of 7.
n, m →
↓
1,1 1,2 1,3 ........... 1, 100
2,1 2,2 2,3 ........... 2, 100
...........................................
100, 1 100,2 100, 3......... 100, 100
For m = 1 ; n = 3, 7, 11, ...... 97
∴ Favourable cases = 25
For m = 2, n = 4, 8, 12, ......., 100
∴ Favourable cases = 25
Similarly for every m, favourable n are 25.
∴ Total favourable cases = 100 × 25
Hence required probability =