How do you compute this when the base case is all wrong?
HINT:
Use $$\left\lfloor\frac{m+2}2\right\rfloor=\left\lfloor\frac m2+1\right\rfloor=\left\lfloor\frac m2\right\rfloor+1$$
In fact, $$\left\lfloor\frac mn+I\right\rfloor=\left\lfloor\frac mn\right\rfloor+I$$ for any integers $I,m,n$
Copyright © 2021 JogjaFile Inc.
HINT:
Use $$\left\lfloor\frac{m+2}2\right\rfloor=\left\lfloor\frac m2+1\right\rfloor=\left\lfloor\frac m2\right\rfloor+1$$
In fact, $$\left\lfloor\frac mn+I\right\rfloor=\left\lfloor\frac mn\right\rfloor+I$$ for any integers $I,m,n$