hatM≡{M(n)+k12/(2k2)if k2>0M(n)+k1(k1−1)/2otherwise hat M \equiv \begin{cases} M(n) + k_1^2 / (2 k_2) & \text{if } k_2 > 0 \\ M(n) + k_1(k_1 - 1)/2 & \text{otherwise} \\ \end{cases}