correcting some code in logm

the previous correction was not the good one. The error was the parenthesis position.
a*ceil(b/a) and not a*ceil(b)*a