Abstract
Given two DNA sequences, one is usually interested in measuring their similarity. For this purpose we have to consider different alignments of both the sequences. The number of alignments grows rapidly with the length of the sequences. In this short communication, we give an exact formula for the number of possible alignments using the theory of difference equations.