Now i will develop a recursiv solution for p(2,1):
We must distinguish between some cases:
1. A has two 6s, B has no 6:
In this case A wins.
2. A has two 6s, B has one 6:
In this case we have the same situation as before, so p(2,1).
3. A has one 6, B has no 6:
A wins.
4. A has one 6, B has one 6:
We are in the situation p(1,1), because A can only roll 1 die.
5. A and B don't have any 6s:
In this case we must look, who gets teh higher result. The propability that A wins in this case is called R(2,1) and is calculated later...
If we stick all this informations together we get following equation:
p(2,1) =
B(2,2)*(1/6)^2*(5/6)^0 * B(1,0)*(1/6)^0*(5/6)^1 [1]
+ B(2,2)*(1/6)^2*(5/6)^0 * B(1,1)*(1/6)^1*(5/6)^0 * p(2,1) [2]
+ B(2,1)*(1/6)^1*(5/6)^1 * B(1,0)*(1/6)^0*(5/6)^1 [3]
+ B(2,1)*(1/6)^1*(5/6)^1 * B(1,1)*(1/6)^1*(5/6)^0 * p(1,1) [4]
+ B(2,0)*(1/6)^0*(5/6)^2 * B(1,0)*(1/6)^0*(5/6)^1 * R(2,1) [5]
If we simplify all those terms (
) for x=2, y=1 we get:
p(2,1) = (1/6)^3 * ( 5 + p(2,1) + 50 + 10*p(1,1) + 5^3*R(2,1))
Now its time to give a formula for R(2,1). If you write down all combinations possible form (1,1,1) to (5,5,5) and look if one of the first to numbers is equal or higher then the last you get the possibility R(2,1).
If you check the old thread, you see, that we already had a solution to calculate how often 1,2,3,.. is the highest number in such a tuple.
k^n-(k-1)^n gives the number of tuples with the maximum number "k" when you roll "n" dice. I.e. if you roll two dice and want to know how many tuples have a maximum number of 2 you get: (1,2); (2,1) and (2,2). 2^2-1^2=3
So we can calculate R(2,1):
In 1^2-0^2=1 cases "1" is the maximum for A, with p=1/5 A wins ( if B has a 1 too).
In 2^2-1^2=3 cases "2" is the maximum for A, with p=2/5 A wins (if B has a 1 or 2).
...
In 5^2-4^2=9 cases "5" is the maximum for A, with p=5/5 A wins (because B can not have a 6).
So R(2,1)= 1/25*1/5 + 3/25*2/5 + 5/25*3/5 + 7/25*4/5 + 9/25*5/5
R(2,1) = (1/5)^3 * (1+6+15+28+45)= (1/5)^3*95
For our case we get:
p(2,1) = (1/6)^3 * (5 + p(2,1) + 50 + 10*p(1,1) + 95)
Substituting p(1,1)=4/7 and solving for p(2,1) we get:
p(2,1) = 1/(6^3-1) * (150+10*4/7) = 218/301 = 0.72425
I will post the general recursive formula to calculate all those possibilities later....