in reply to Re^3: Tricky math problem ...
in thread Tricky math problem ...

 otherwise the solution is trivial, just take all "squares" with length 1.

and keep merging them till the cows come home...