MathDB
consider words composed of n letters A and n letters $B

Source: Austrian - Polish 1992 APMC

May 7, 2020
Wordscombinatorics

Problem Statement

Given an integer n>1n > 1, consider words composed of nn letters AA and nn letters BB. A word X1...X2nX_1...X_{2n} is said to belong to set R(n)R(n) (respectively, S(n)S(n)) if no initial segment (respectively, exactly one initial segment) X1...XkX_1...X_k with 1k<2n1 \le k < 2n consists of equally many letters AA and BB. If r(n)r(n) and s(n)s(n) denote the cardinalities of R(n)R(n) and S(n)S(n) respectively, compute s(n)/r(n)s(n)/r(n).