PHP developer here so no real math background :-( gave up after googling and hence the question
As the question states how many times does a single die have to be rolled for any of the previously rolled numbers to repeat. Meaning if the numbers have not repeated with each successive roll then the solution should take into account all previously rolled numbers to compute the probability of repeating
Finally is there a formula to compute this for arbitrary certainty? Meaning how many time to roll the dice number repeating with 50% or 70% certainty?
Example 1: First roll: 5 How many more times do I have to roll the die to get a 5 again.
Example 2: First roll: 1 Second roll: 3 How many more times do I have to roll the dice to get a 1 or 3 again.
Example 3: First roll: 2 Second roll: 1 Third roll: 4 How many more times do I have to roll the dice to get a 2 or 1 or 4 again.
And so on...
I would greatly appreciate a link to the theory or google terms as I would like to understand this clearly and not just get an answer.
Thank you very much for your time!

This is in reference to example 1 or 2.
– Display Name Apr 02 '14 at 06:41