By considering all positions of G, we can calculate the probability Pr(Yr) that T appears exactly r times in R.Given a length-g random genome G with each nucleotide having the same occurrence probability (1/4), the probability that a variant Tt of T occurs at a particular position i of G, i.e. G [i...i + k - 1] is a variant Tt of T, is