The summation of i for i ranging from 1 to the floor of the logarithm base 2 of repetitions

repeatify summation formula