Solution:
Let n=7 and p=41.
Let qk be the probability that n is the last number rolled, if k numbers less than n have already been rolled. We want q0 and we know qn−1=1.
We have the relation
qk=(1−p)n−1kqk+[1−(1−p)n−1k+1]qk+1
This rearranges to
[1−(1−p)n−1k]qk=[1−(1−p)n−1k+1]qk+1
This means that the expression on the LHS does not depend on k, so
[1−0]⋅q0=[1−(1−p)]⋅qn−1=p
Solution 2:
For a given sequence of Teresa's rolls, let xi be the ith distinct number rolled. We want to compute the probability that x7=7.
For a given index i, we say that xi is correct if xi is the least positive integer not in {x1,…,xi−1}. Note that the probability of a given sequence x1,…,x7 depends only on the number of correct xi, since the probability of rolling the correct number on a given roll is higher by a factor of 2.
Now, suppose x7=7. Consider xi′=xi−1+1 for 1<i≤7, and x1′=1. Note that this operation on sequences x1,…,x7 pairs sequences ending in 7 with sequences starting with 1. Additionally, we have that x7 and x1′ are both correct, and that xi′ is correct if and only if xi−1 is correct. Thus x1,…,x7 and x1′,…,x7′ have the same probability.
So, we conclude that the probability of x7=7 is the same as the probability of x1=1. But this is just 41.