For a cube composed of $3 \times 3 \times 3$ smaller cubes has the outside painted red. If a small cube is placed on the table and you see all $5$ visible faces are unpainted, what is the probability the unseen face is also unpainted?
What is the general case for a $n \times n \times n$ cube?
I know it should use Bayes Theorem $P(6th\;Unpainted | 5\;Unpainted\; Face) = \frac{P(5\;Unpainted\; Face | 6th\;Unpainted)\cdot P(6th\;Unpainted)}{P(5\;Unpainted\; Face)}$ but not sure what probabilities to use.
Note, that every $n\geq 2$ the cube $n\times n \times n$ have exactly:
Denote:
Of course $P_{5|c} =1$
Probability of tossing 5 visible clean sides is: $$P_5=P_cP_{t0}+P_oP_{t1}=\frac{(n-2)^3+(n-2)^2}{n^3}$$
Now the probability of having clean dice under the condition that 5 visible sides are clean is: $$P_{c|5} = \frac{P_{5|c}P_c}{P_5} = \frac{\frac{(n-2)^3}{n^3}}{\frac{(n-2)^3+(n-2)^2}{n^3}} = \frac{(n-2)^3}{(n-2)^3+(n-2)^2}=\frac{(n-2)^2(n-2)}{(n-2)^2(n-1)}=\frac{n-2}{n-1}$$