Hello I would like to know which log rule applies below:
This step is given:
$$2n \left(1 - \left(\dfrac 12\right)^{\log n + 1}\right)$$
This is followed by this step:
$$2n - n\left(\dfrac 12\right)^{\log n}$$
Which is then followed by:
$2n - \dfrac nn$
Could I get an explanation for each step please? Sorry for being so much of a novice.