The electronic properties of a one-dimensional diatomic crystal have been analyzed by using the MO-LCAO method in the tight binding approximation, with mathematical techniques involved in setting up and solving difference equations. The approach gives the exact sets of analytic solutions for both localized and nonlocalized states. The theory of surface states is developed as a characteristic value problem. To illustrate the method the surface states for a semiinfinite crystal which contains a local imperfection at the surface were examined. It appears that this method has advantages over previous methods developed to solve surface problems in crystalline lattices.