Replace the upper limit of the inner summation from πβ1 to mβ1, to make it clear the sequence length is π