The coefficients of three successive terms in the expansion of (1+x)n are 165, 330 and 462 respectively, then the value of n will be