We are to compute the number of integers less than 1000 which
are power of other integers.
- Perfect Squares: 12, 22 , .....
Now the square root of 1000 is greater than 31 but less than 32.
Therefore 312 would be the largest perfect square less
than 1000
Therefore we have 31 perfect squares.
- Perfect cubes: 13, 23, ....
103 that is 10 such perfect cubes. But some of these
cubes are perfect squares as well which we have already counted. So
we cannot double count them here.
The cubes of perfect squares are perfect squares as well. Out of
the first 10 numbers the perfect squares are 1, 4, and 9. Therefore
we need to remove cubes of these 3 numbers.
So we have 7 numbers which are non perfect square
cubes.
- Perfect 4th power: 14 , 24,
34, 44, 54 that is 5 such numbers
but all these are perfect squares as well, and therefore are
already counted in the perfect squares case. Therefore we wont
count them here.
- Perfect 5th power: 15, 25, 35
that is 3 such numbers but we count here only 2 as 15 is
already counted before. Therefore 2 such
numbers.
- Perfect 6th powers already accounted in perfect squares /
cubes.
- Perfect 7th power, there is only number to be taken that is
27
Therefore 1 more number here.
- Perfect 8th power already taken in perfect squares
- Perfect 9th power already taken in perfect cubes.
- No more higher powers to be considered as 210 >
1000
Therefore total such numbers = 31 + 7 + 2 + 1 = 41
Therefore 41 is the required number of numbers here.
Therefore the probability here is computed as:
= 41/1000
= 0.041
Therefore 0.041 is the required probability
here.