From the previous calculations you know how to calculate the probability mass function of the number of attackers survived after a battle. Then you just need to exhaust all the possible paths (remember the reduction of 1 army through the next battle).
Say you want to calculate the probability of winning all 3 battles. So first you calculate the probability mass function of the number of attackers entering the final battle. To do this you also need to consider the number of armies entering the second battle - essentially you are listing all the paths. By independence each path probability is just the product.
E.g. Initially the number of attackers is \( 5 \).
You can calculate the probability of winning with \( 3 \) armies entering the final. Such scenario occur when you win first two battles without any losses, i.e. \( 5 \to 5, 4 \to 4 \). Next you calculate with \( 2 \) only. The possible paths are \( 5 \to 4, 3 \to 3 \) and \( 5 \to 5, 4 \to 3 \) . Similarly you can calculate all these and sum them up to obtain the desired probability.
Say you want to calculate the probability of winning all 3 battles. So first you calculate the probability mass function of the number of attackers entering the final battle. To do this you also need to consider the number of armies entering the second battle - essentially you are listing all the paths. By independence each path probability is just the product.
E.g. Initially the number of attackers is \( 5 \).
You can calculate the probability of winning with \( 3 \) armies entering the final. Such scenario occur when you win first two battles without any losses, i.e. \( 5 \to 5, 4 \to 4 \). Next you calculate with \( 2 \) only. The possible paths are \( 5 \to 4, 3 \to 3 \) and \( 5 \to 5, 4 \to 3 \) . Similarly you can calculate all these and sum them up to obtain the desired probability.