Simon says he saw this question on a thumbnail of a recommended video and got curious to solve this. He built a beautiful colored graph to visualize the problem in Geogebra:



a homeschooling blog about Simon, a young mathematician and programmer, and his little sister Neva. Visit https://simontiger.com
Simon says he saw this question on a thumbnail of a recommended video and got curious to solve this. He built a beautiful colored graph to visualize the problem in Geogebra: