This problem can be stated in terms of Dyck Paths. Let $n$ be the number of roses of each colour, so there are a total of $2n$ roses. A rose sequence will take the bride into the church if at any point in the sequence the number of red roses exceeds the number of white roses. So the sequences that keep the bride out of the church are those where the number of red roses never exceeds the number of white roses. Those sequences that keep her out of the church correspond to Dyck paths of length $2n$.
Dyck paths / Dyck words are often represented using parentheses, with a Dyck path corresponding to a correctly-nested sequence of parentheses.
To illustrate, here are the sequences for $n = 3$, using parentheses, w
& r
for the roses, and -
and +
for the bride's steps.
1 ()()() wrwrwr -+-+-+
2 ()(()) wrwwrr -+--++
3 (())() wwrrwr --++-+
4 (()()) wwrwrr --+-++
5 ((())) wwwrrr ---+++
From the '-+' strings we can easily see that the number of '+'s never exceeds the number of '-'s.
The Wikipedia article on Catalan numbers has some good information on this topic. In particular, see the second and third proofs, which have helpful diagrams.
The total number of Dyck paths of length $2n$ is
$$\frac{1}{n+1} \binom{2n}{n}$$
where $\binom{m}{r}$ is the binomial coefficient. $\binom{m}{r} = \frac{m!}{r!(m-r)!}$
The total number of all the paths is
$$\binom{2n}{n}$$
So the number of non-Dyck paths is
$$\binom{2n}{n} - \frac{1}{n+1} \binom{2n}{n} = \frac{n}{n+1} \binom{2n}{n}$$
Hence the probability we seek is
$$\frac{\frac{n}{n+1} \binom{2n}{n}}{\binom{2n}{n}} = \frac{n}{n+1}$$
For the case of $n = 10$, the probability is 10/11 = 0.909090...
In the comments, Ant asks" What's the expected number of steps that the bride has to take to enter the church, given that she enters it?
The answer is given in OEIS A008549,
Number of ways of choosing at most n-1 items from a set of size 2n+1.
Area under Dyck excursions (paths ending in 0): a(n) is the sum of the
areas under all Dyck excursions of length 2*n (nonnegative walks
beginning and ending in 0 with jumps -1,+1).
The relevant formula says that the total number of steps is given by
$$4^n - \binom{2n+1}{n}$$
So to get the expected number of steps we need to divide that by the number of successful paths, i.e., non-Dyck paths.
$$\left(\frac{4^n - \binom{2n+1}{n}}{\binom{2n}{n}}\right)\frac{n+1}{n}$$
$$= \left(\frac{4^n}{\binom{2n}{n}} - \frac{2n+1}{n+1}\right)\frac{n+1}{n}$$
$$= \frac{4^n}{\binom{2n}{n}}\frac{n+1}{n} - \frac{2n+1}{n}$$
$$= \frac{4^n}{\binom{2n}{n-1}} - \frac{2n+1}{n}$$
Here's a table showing the relevant numbers for $n$ = 1..10
n: paths success prob : steps expected
1: 2 1 0.500000 : 1 1.000000
2: 6 4 0.666667 : 6 1.500000
3: 20 15 0.750000 : 29 1.933333
4: 70 56 0.800000 : 130 2.321429
5: 252 210 0.833333 : 562 2.676190
6: 924 792 0.857143 : 2380 3.005051
7: 3432 3003 0.875000 : 9949 3.313020
8: 12870 11440 0.888889 : 41226 3.603671
9: 48620 43758 0.900000 : 169766 3.879656
10: 184756 167960 0.909091 : 695860 4.143010
That table was created using this Python 3 code:
from itertools import product
def lexico_permute(a):
a = list(a)
yield a
n = len(a) - 1
while True:
for j in range(n-1, -1, -1):
if a[j] < a[j + 1]:
break
else:
return
v = a[j]
for k in range(n, j, -1):
if v < a[k]:
break
a[j], a[k] = a[k], a[j]
a[j+1:] = a[j+1:][::-1]
yield a
def bride(num):
success = 0
steps = 0
base = [-1] * num + [1] * num
for i, seq in enumerate(lexico_permute(base), 1):
pos = 0
for j, u in enumerate(seq, 1):
pos += u
if pos > 0:
success += 1
steps += j
break
return i, success, steps
print(' n: paths success prob : steps expected')
fmt = '{:2}: {:6} {:6} {:0.6f} : {:6} {:0.6f}'
for n in range(1, 11):
total, success, steps = bride(n)
prob = success / total
expected = steps / success
print(fmt.format(n, total, success, prob, steps, expected))
I guess it's worth mentioning (especially in relation to the expected number of steps) that
$$\binom{2n}{n} \approx \frac{4^n}{\sqrt{\pi n}}$$
as mentioned in Central binomial coefficient.
A better approximation is
$$\frac{4^n}{\sqrt{\pi n}} \frac{16n-1}{16n+1}$$
Thus the expected number of steps is approximately
$$\sqrt{\pi n} \left(\frac{16n+1}{16n-1}\right) \left(\frac{n+1}{n}\right) - \frac{2n+1}{n}$$