If in the expansion of (1+x)n, the coefficients of rthand (r+2)th terms be equal, then r is equal to :