2.1.17 problem 19

See https://math.stackexchange.com/q/3292400/649082