5 can be thrown in 4 ways and 7 can be thrown in 6 ways, hence number of ways of throwing neither 5 nor 7 is
36−(4+6)=26
Therefore probability of throwing a five in a single throw with a pair of dice is 436=19 and probability of throwing neither 5 nor 7 is 2636=1318
Hence, required probability =(19)+(1318)(19)+(1318)2(19)+...=191−1318=25