document.write( "Question 843064: If you have 3 number cubes, what is the probability that you will roll three of a kind or a sum that is an odd number?
\n" ); document.write( "I have tried to solve this problem but I don't understand how to figure out the probability of rolling 3 of a kind.
\n" ); document.write( "

Algebra.Com's Answer #507909 by Theo(13342)\"\" \"About 
You can put this solution on YOUR website!
the probability of getting three of a kind of the sum of the three cubes is an odd number is equal to:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability of getting three of a kind
\n" ); document.write( "plus the probability of getting the sum of the cubes equal to an odd number
\n" ); document.write( "minus the probability of getting three of a kind and the sum of the cubes is equal to an odd number.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability of getting three of a kind is equal to:
\n" ); document.write( "1/6 * 1/6 * 1/6 * 6 which is equal to:
\n" ); document.write( "6/216\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "out of the 6, 3 of them will have a sum that is odd (numbers 1,3,5) and 3 of them will have a sum that is even (numbers 2,4,6).\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "we need to subtract the ones that have an odd sum because they will otherwise be double counted.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "you get:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "6/216 minus 3/216 which is equal to:
\n" ); document.write( "3/216\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the net probability of getting 3 of a kind whose sum is odd is therefore equal to 3/216. *****\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability of the sum of the three cubes having a sum that is odd is broken up into 2 parts.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the first part is the probability that each of the cubes is odd.
\n" ); document.write( "this will result in a sum that is odd.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability that each cube is odd is equal to 3/6.
\n" ); document.write( "the probability that all 3 cubes are odd is therefore equal to 3/6 * 3/6 * 3/6 which is equal to 27/216. *****\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "note that the probability that each cube is odd includes the cubes that are all the same (cubes with all 1's, cubes with all 3's, cubes with all 5's).
\n" ); document.write( "if we had not subtracted them from the total, they would have been double counted.
\n" ); document.write( "the subtraction was done above.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the only other way that the sum of the 3 cubes could be odd is that 2 of the cubes are even and the third cube is odd.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability of a cube being even is 3/6.
\n" ); document.write( "the probability of a cube being odd is 3/6.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the odd number are 1,3,5
\n" ); document.write( "the even numbers are 2,4,6\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the probability of 2 of the cubes being even and 1 of the cubes being odd is therefore equal to 3 * 3/6 * 3/6 * 3/6 = 81/216 *****\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the 3/6 * 3/6 * 3/6 is only one arrangement.
\n" ); document.write( "there are three arrangements of 2 even cubes and 1 odd cube.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "those arrangements are:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "even even odd
\n" ); document.write( "even odd even
\n" ); document.write( "odd even even\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that's why the 3/6 * 3/6 * 3/6 was also multiplied by 3.
\n" ); document.write( "this takes care of the 3 possible arrangements.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the total probability is the sum of all 3 of these probabilities.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that will be 3/216 + 27/216 + 81/216.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the sum of all of that is equal to 111/216.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "that's your answer is i did this correctly.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "i verified with a much simpler example that the method is good so i'm reasonably confident the answer is good.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the formula for p(a or b) is:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p(a or b) = p(a) + p(b) - p(ab)\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p(ab) is the probability of both occurring at the same time.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "in this problem that was the probability that all cubes had the same number and that the sum was odd.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "p(ab) in this problem was 3/216 which i subtracted from 6/216 up front.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "if i had followed the script exactly, the end total would have been:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "6/216 + 27/216 + 81/216 - 3/216.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "the end result would have been the same with a total probability of 114/216 - 3/216 which would have been equal to 111/216.\r
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "
\n" ); document.write( "
\n" );