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.