A problem from a modern textbook

 

v20240901