Let X denotes the number of times head occur in n tosses of a fair coin. If P(X=4),P(X=5) and P(X=6) are in AP, then the value of n is