What is the expected number of rolls of both dice until you get a sum that equals 6?

I know that p[sum = 6] = 5/36, but how do I find out:
E[# of rolls until the sum = 6] = ?

Thanks!!

To find the expected number of rolls until the sum of two dice equals 6, you can use the concept of a geometric distribution. The expected value, denoted as E[X], can be calculated using the formula E[X] = 1/p, where p is the probability of success (i.e., getting a sum of 6) on each roll.

The probability of getting a sum of 6 on two dice is indeed 5/36. Therefore, the expected number of rolls until the sum of 6 is:

E[# of rolls until the sum = 6] = 1 / (5/36) = 36/5 = 7.2

So, on average, it would take approximately 7.2 rolls to get a sum of 6 when rolling two dice.