The frequency of matching sequences in DNA