Given $ I_n = \int_0^{\pi/2} \sin^n\theta d\theta $, the recursive formula can be found as
$$ I_n = \frac{n-1}{n}I_{n-2} $$
The lecture notes later state that
$$ \frac{I_{2n-1}}{I_{2n+1}} = 1 + \frac{1}{2n} $$
When I try to calculate the ratio based on the recursive formula, I get other terms that cannot be cancelled, e.g.:
$$ \frac{I_{2n-1}}{I_{2n+1}} = \frac{\frac{2n-2}{2n-1}I_{2n-3}}{\frac{2n}{2n+1}I_{2n-1}} = \frac{(n-2)(2n+1)I_{2n-5}}{n(2n-3)I_{2n-3}} $$
Please, could you help to get the ratio?