Solutions for related problems 114 and 115.