What you are quoting solves a very different problem. It doesn't give you the most common k (in general).