Here is another slightly different approach using solve
And the most elegant in my opinion.
I'll vote for Richard's second approach as sameer did. While more cumbersome its the only one which effectively maximizes L.PM and does not rely on Comb being strictly increasing.