A risky business: how to price derivatives
A general formula for the multi-period case
The price for the option in an $n$ period model is given by $$C=\frac{1}{(1+r)^n}\sum_{k=0}^n {n \choose k} q^k (1-q)^{n-k}y_{u^k d^{n-k}}.$$ Here ${n \choose k}$ denotes the number of ways in which one can choose $k$ objects from a selection of $n$ objects (called the binomial coefficient — you can read more in the Plus article Making the grade: Part II).