I get a slightly different result
The number of digits written down =
9 + 2(99 - 10 + 1) + 3(999 - 100 + 1) =
9 + 2 ( 90) + 3(900) =
2889
The number of 7's that are written down =
10*10 + 10(10) + 100 = 300
So.....the probability of selecting a "7" = 300 / 2889 = 100/963
