Solutions for problems 4, 29, and 39.