If the coefficients of r−1th, rth and r+1th terms in (x+1)n are in the ratio 1:3:5, then n=
The coefficients of the (r – 1)th, rth and (r + 1)th terms in the expansion of
(x + 1)n are in the ratio 1:3:5. Find n and r.