Let
S={all five digit numbers}
Total number of five digit numbers is
99999−10000+1=90000
Hence,
n(S)=90000
Now count five digit numbers divisible by 7.
Smallest five digit multiple of 7 is
10003
Largest five digit multiple of 7 is
99995
Using
n=dl−a+1,
number of multiples of 7 is
n=799995−10003+1
=789992+1
=12856+1
=12857
Now count numbers divisible by both 7 and 5, i.e., divisible by 35.
Smallest five digit multiple of 35 is
10010
Largest five digit multiple of 35 is
99995
Hence,
n=3599995−10010+1
=3589985+1
=2571+1
=2572
Therefore, favorable numbers are
12857−2572=10285
Thus,
p=9000010285
=180002057
Hence,
9p=20002057
Therefore,the required value is
1.0285.