We have two distinct dice. $X$ will be the number of pips showing on the top face of the die after the toss. $Y$ is the same for the second die.
What is the expected value $$Z_2 = greatest\; common\; divisor(X,Y) $$
Can anyone help me how to solve that please? I just know the expected value of $X$, which is $3.5$ and $Y$ is also $3.5$ But I don't know what to do in case of the greatest common divisor.