Problem 57 solved.
Problem 58 resolved.
First approach to problem 59.