exercise 1.45 nth-roots