In: Statistics and Probability
Consider the following experiment. Pick a random integer from 1 to 1012.
(a) What is the probability that it is either a perfect square (1, 4, 9, 16, ...) or a perfect cube (1, 8, 27, 64,...)?
(b) What is the probability that it is either a perfect fourth power (1, 16, 81, 256, ...) or a perfectsixth power (1, 64, 729, 4096,...)?
(a)
We see that :- (106)2 = 1012 ; (106+1)2 > 1012
Thus from 1 to 1012 , there are 106 numbers which are perfect square.
Thus probability that the number picked is perfect square = (106/1012) = 0.000001
We see that :- (104)3 = 1012 ; (104+1)3 > 1012
Thus from 1 to 1012 , there are 104 numbers which are perfect cube.
Thus probability that the number picked is perfect cube = (104/1012) = 0.00000001
We see that :- (12)3 = (13)2 ; (22)3 = (23)2 ; (32)3 = (33)2 ; ........... ; (1002)3 = (1003)2 ; (1012)3 = (1013)2 > 1012
Thus from 1 to 1012 , there are 100 numbers which are perfect square as well as perfect cube
Thus probability that the number picked is perfect square as well as perfect cube = (100/1012) = 0.0000000001
Thus probability that the number picked is perfect square or perfect cube
= 0.000001+0.00000001-0.0000000001 = 0.0000010099
.
(b)
We see that :- (103)4 = 1012 ; (103+1)4 > 1012
Thus from 1 to 1012 , there are 103 numbers which are perfect fourth power.
Thus probability that the number picked is perfect fourth power = (103/1012) = 0.000000001
We see that :- (102)6 = 1012 ; (102+1)6 > 1012
Thus from 1 to 1012 , there are 102 numbers which are perfect sixth power.
Thus probability that the number picked is perfect sixth power = (102/1012) = 0.0000000001
We see that :- (14)6 = (16)4 ; (24)6 = (26)4 ; (34)6 = (36)4 ; (44)6 = (46)4 > 1012
Thus from 1 to 1012 , there are 3 numbers which are perfect fourth power as well as perfect sixth power.
Thus probability that the number picked is perfect square as well as perfect cube = (3/1012) = 0.000000000003
Thus probability that the number picked is perfect square or perfect cube
= 0.000000001+0.0000000001-0.000000000003 = 0.000000001097