If binomial coefficients of three consecutive terms of (1+x)n are in H.P, then then maximum value of n is: