Initial Problem 17 solution