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.
Hi Max, thanks for your answer, maybe I'm doing something incorrect, but it seems like when M=9, k=7 is indeed an integer root, I put the calculation in the body of the question at the end, it was too long for a comment. Thanks again for looking into this, greatly appreciated!