$$\begin{align*} &\text{They are saying packets instead of MSS } \\ &\text{So, According to the question : } \\ \\ &\begin{matrix} &\text{1st RTT} &\text{packet sent}&=1=2^0 \\ \\ &\text{2nd RTT} &\text{packet sent}&=2=2^1 \\ \\ &\text{3rd RTT} &\text{packet sent}&=4=2^2 \\ \\ &\text{4th RTT} &\text{packet sent}&=8=2^3 \\ \\ &\text{5th RTT} &\text{packet sent}&=16=2^4 \\ \\ &\text{6th RTT} &\text{packet sent}&=32=2^5 \\ \\ &---&---&---\\ \\ &\text{kth RTT} &\text{packet sent}&={\color{red}{\bf 2^{k-1}}} \\ \\ \hline\\ &\text{at the end of kth RTT}&\text{Total packet sent} &= \sum_{x=0}^{k-1}\left [ {\color{red}{\bf 2^{x}}} \right ] \end{matrix} \\ \\ &\text{Total packet sent} = \sum_{x=0}^{k-1}\left [ {\color{red}{\bf 2^{x}}} \right ] = {\color{red}{\bf 2^k - 1}} \\ & \Rightarrow N = {\color{red}{\bf 2^k - 1}} \\ &\Rightarrow k = {\color{red}{\bf \log_2\left [ N+1 \right ]}} \\ \end{align*}$$