A standard die is rolled six times. What is the probability that the product of all six rolls is divisible by 3? Express your answer as a common fraction.
I wrote a short computer code to calculate this probability and the result I got was as follows:
The sample space =6^6 =46,656
Total products that are divisible by 3 from the above 46,656 =42,560
So, the probability is =42,560 / 6^6 ==665 / 729
Note:Somebody should check this result, please. Thanks.