Solution (source code)

= Solution
{c}

The first swap necessarily removes one red ball from urn 1 and replaces it with a blue ball. Thus $\boxed{R_1=n-1}$ with probability one.