it can happen in following way.
(7,3) or (9,1)
From 1 to 100, there are 25 numbers which when put as 7^m give 7 at last, similarly 25 which give 3, 25 which give 1 and 25 which give 1 as the unit digit when raised onto 7.
Number which give 7 = 25
Number which give 3= 25
Numbers which give 1=25
Numbers which give 9 = 25
Hence now, we can either have (7,3) or (9,1)
Consider, for 7 and 3
This means one number from 7 category and other from the one which gives 3 . This can be done in 25C1 X 25C1 ways.
Similarly for (9,1) Number of ways are 25C1X25C1
Ways to select m and n , considering they are replaced is 100C1 X 100 C1
Hence the probability is (25C1 X 25C1 + 25C1 X 25C1 ) / (100C1 X 100C1) = 1/8
(7,3) or (9,1)
From 1 to 100, there are 25 numbers which when put as 7^m give 7 at last, similarly 25 which give 3, 25 which give 1 and 25 which give 1 as the unit digit when raised onto 7.
Number which give 7 = 25
Number which give 3= 25
Numbers which give 1=25
Numbers which give 9 = 25
Hence now, we can either have (7,3) or (9,1)
Consider, for 7 and 3
This means one number from 7 category and other from the one which gives 3 . This can be done in 25C1 X 25C1 ways.
Similarly for (9,1) Number of ways are 25C1X25C1
Ways to select m and n , considering they are replaced is 100C1 X 100 C1
Hence the probability is (25C1 X 25C1 + 25C1 X 25C1 ) / (100C1 X 100C1) = 1/8












