The set of numbers is S={1,2,3,4,5,6,7,8,9,10,11,12,13}, so ∣S∣=13.
In 4-bit unsigned binary representation:
Numbers with most significant bit (MSB) equal to 0 are 1 to 7 (since 110=00012 to 710=01112). There are 7 such numbers.
Numbers with MSB equal to 1 are 8 to 13 (since 810=10002 to 1310=11012). There are 6 such numbers.
Two numbers are chosen independently and uniformly with replacement from the set.
Probability that both numbers have MSB = 0:
P(both 0)=(137)×(137)=16949 Probability that both numbers have MSB = 1:
P(both 1)=(136)×(136)=16936 Total probability of having the same MSB:
P=16949+16936=16985≈0.50296 Rounding off to 3 decimal places gives 0.503 (acceptable range: 0.502 to 0.504).