If the coefficients of rth,(r+1)th and (r+2)th terms in the binomial expansion of (1+y)mare in A.P., then m and r will satisfy the equation