Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
It is very possible I made a computational error (or in the case of solving for the optimal $k$, a Mathematica error) in the lengthy string of computations. I hope it doesn't sink things!